fixed bug in gamestate