Added saveGame function for storing to txt file.