fixed bug in gameState