added Gamemode class to change gamemode
resolved huge issue in findPlayerInArray() which always returned null