Fixes in main.cpp and game.cpp regarding variable "exitCode" and function "newGame"

Made exitCode a global variable and fixed areas in newGame not recognizing "save" as an ofstream call.