game over detection fixed