SimulationThread class was added. The state classes were modified to include transitions to other states.