Added state management to Game class.