game-over check fix