Properly save state
Handle game over with a dialog box.