AutoSave: combine the two event handlers into a closure
AutoSave: save on game end