Added state machine logic to Game class.