game state work