Fix gameEnd()