fixed possible bug in gameOver logic