public static void NewGame(GameType type, GameModes mode, InetAddress addr, int nPlayers, int nPlanets, int nRows, int nCols)
	{
		if(type == null || mode == null) {
			System.err.println("Must select a type and mode!");
			return;
		}
		Instance.gameType = type;
		Instance.gameMode = mode;
		if(debug) System.out.println("Mode is " + ModeToString(mode));
		if(type == GameType.NETWORK) {
			Instance.setUPConnection(addr);
			// read number of players from network game
			TurnManager.initManager(nPlayers);
		} else if (type == GameType.LOCAL) {
			TurnManager.initManager(nPlayers);
		}

		Instance.setUpMap(nRows, nCols, nPlanets);
		Instance.gameOver = false;
		Instance.winner = -1;
		Instance.selectedObj = null;
		//ISectors.view.BattleMap.Instance.loadBattleMap(nRows, nCols);//Implemented in BattleWindow.
	}