I'm trying to simulate the Dining Philosophers problem but I'm having trouble visualising it. When the thread moves from Waiting() to Eating() to Thinking() it changes a variable called state to represent this. However in my main thread it never sees the state variable change. It calls a return function for state when drawing to change the colour of the philosopher.I'm trying to simulate the Dining Philosophers