Factor out game saving and loading for re-use with --load.