check game state