Switched to alternate method of disabling the game mode instead of commenting out the gamemode as a whole.