Added a null check to GameMode.setTeam, removed Helper.setTeam