fixes bug where game over alerts multiple times, and adds restart game option