Support for gamemode numbers

Adding the gamemodes numbers as a way to gather the gamemode.
Merge pull request #187 from magnusulf/patch-2

Support for gamemode numbers