this was a routine for saving while creating the game . i would save before running in case the game had bugs