public static void main(String[] args) throws Exception {
		// game parameters
		String group = null;
		int npipers = DEFAULT_PIPERS; // d
		int nrats = DEFAULT_RATS; // S

		if (args.length > 0)
			group = args[0];
		if (args.length > 1)
			npipers = Integer.parseInt(args[1]);
		if (args.length > 2)
			nrats = Integer.parseInt(args[2]);
		if (args.length > 3)
			gui = Boolean.parseBoolean(args[3]);
		if (args.length > 4)
			seed = Integer.parseInt(args[4]);
		if (args.length >5)
			dimension = Integer.parseInt(args[5]);
		random = new Random(seed);
		OPEN_LEFT = dimension/2-1;
		OPEN_RIGHT = dimension/2+1;
		System.out.printf("the open left and open right are %f and %f", OPEN_LEFT, OPEN_RIGHT);
		// load players
		Player[] players = loadPlayers(group, npipers, dimension);

		// create game
		Piedpipers game = new Piedpipers(players, nrats);
		// init game
		game.init();
		// play game
		if (gui) {
			game.playgui();
		} else {
			game.play();
		}

	}