refactor game over after death