implemented saving and loading of game