Cleaning up the setting of globalvars and gameglobals a bit.