fix game over issue not triggering correctly