gamestate check