templated the gamemode