public static GameModes StringToMode(String mode) {
		GameModes[] modes = GameModes.values();
		for(int i = 0; i < modes.length; i++) {
			if(mode.equalsIgnoreCase(ModeToString(modes[i]))) {
				return modes[i];
			}
		}
		return null;
	}