public static void main(String[] args) {
		int turn = -1;
		Player[] players = {null, null};
		
		Scanner in = new Scanner(System.in);
		
		// set the number of games
		System.out.println("Input the number of games to be played:");
		turn = in.nextInt();
				
		// set player objects
		for (int i = 0; i < players.length; i++) {
			while (players[i] == null) {
				String idx = (i == 0) ? "first" : "second";
				System.out.println("Enter the name of " + idx + " player's class:");
				String s = in.next();
				try {
					players[i] = Player.getInstance(PLAYERS_PACKAGE_NAME + "." + s);
				} catch (ReflectiveOperationException e) {
					System.out.println("Player " + s + " doesn't exist.");
				}
			}			
		}
		
		CUIController controller = new CUIController(turn, players[0], players[1]);
		controller.run();
	}