public static void main(String[] args) {
		try {
			int player1Type = Player.HUMAN_PLAYER;
			int player2Type = Player.HUMAN_PLAYER;
			if( args.length != 2  ) {
				System.out.println("Usage: program <player 1 type> <player 2 type>");
				System.out.println("       where player type = human, random, or minimax");
				System.exit(-1);
			}
			if( args[0].equals(HUMAN_PLAYER_STRING) ) {
				player1Type = Player.HUMAN_PLAYER;
			} else if( args[0].equals(RANDOM_PLAYER_STRING)) {
				player1Type = Player.RANDOM_PLAYER;
			} else if( args[0].equals(MINIMAX_PLAYER_STRING)) {
				player1Type = Player.MINIMAX_PLAYER;
			} else {
				throw new Exception("Unrecognized player type");
			}
			
			if( args[1].equals(HUMAN_PLAYER_STRING) ) {
				player2Type = Player.HUMAN_PLAYER;
			} else if( args[1].equals(RANDOM_PLAYER_STRING)) {
				player2Type = Player.RANDOM_PLAYER;
			} else if( args[1].equals(MINIMAX_PLAYER_STRING)) {
				player2Type = Player.MINIMAX_PLAYER;
			} else {
				throw new Exception("Unrecognized player type");
			}

			GameFrame application = new GameFrame(player1Type,
					player2Type);
			application.playGame();
		} catch (Exception e) {
			System.out.println(e.getMessage());
			e.printStackTrace();
		}
	}