Global State changes

Added a global game state accessible from any file.
Bit of code cleanup