Makes the game save on quitting and when saving chests.