Fix game over logic

Moved some story-related variables to be directly in story time.py;
Made and modified some functions so that the game would end and restart
more consistently when it’s supposed to.