Coding the GameState class