Moved the code that checks for the existence of a file to a new function, which is called by playGame() and calls saveGame() when appropriate.