public static String whichPlayer(String boardArray[][]) {
		String player = "X";
		int numberOfXs = 0;
		int numberOfOs = 0;
		for (int i = 0; i < boardArray.length; i++) {
			for (int j = 0; j < boardArray.length; j++) {
				if (boardArray[i][j] == "X") {
					numberOfXs++;

				} else if (boardArray[i][j] == "O") {
					numberOfOs++;
				}

			}
		}
		if (numberOfXs == numberOfOs) {
			player = "X";
		} else if (numberOfXs > numberOfOs) {
			player = "O";
		}
		return player;

	}