I made a few mistakes, but I was able to correct them via the video.
A few of them were:
-
I placed bGameOver allover the place, where I only needed to go to EndGame where it is set to true.
-
In the first if statement, I did not have to use “bGameOver == true”, only bGameOver for reasons that the instructor had mentioned.
-
My biggest mistake: I called up SetupGame in the EndGame function, wondering why the game was immediately called up without waiting for the enter key to be hit…until I deleted it. My program’s behavior behaved properly after that.