added methods to save state of game in yaml to a file, and to load a saved game