Extracted GameState class.