RanGH, you should turn on warnings for your compiler.
In g++ or clang, you can use
-Wall
In Visual Studio, I guess read this
https://msdn.microsoft.com/en-us/library/23k5d385.aspx
As ar2007 mentioned, your replay function is not compiling.
In function 'bool Replay()':
112:8: error: expected unqualified-id before '.' token
117:2: warning: control reaches end of non-void function [-Wreturn-type]
|
The error, translated: Game is a class, not an object. You can't call Game.NewGame(). You need an instance of your Game class (MyGame), like you have in main.
The warning, translated: The end of your function can be reached without having a return statement. A non-void function
must return a value.
By the fact that you try to return 0, it seems to me you aren't completely understanding what a bool is. A bool can have two values: true or false. 0 happens to translate to false, but I just want you to be aware of that.
Also, even if your Replay function did compile, now you're not calling it from anywhere.