added capability for saving and loading games from file