Adds game state, error found

Found an error was created in commit that cleaned up
repeated code with an function testing overlap.
Marked the place with the error.
Didn't want to undo the work I did doing this:
Instead of a cycle, because that would be incestuous,
the main file is calling the others based on game state.
Done done testing that till the error is fixed.