Hopefully fixed the gamemode stuff, not tested