before game over implement