Gamemode mechanism

adding gamemode mechanism things