public static boolean isAdjacentTo(Board board, int player, int x, int y) {
		int boardSize = board.boardSize;
		int[][] intersections = board.intersections;
		return (x > 0 && intersections[x - 1][y] == player) ||
				(x < boardSize - 1 && intersections[x + 1][y] == player) ||
				(y > 0 && intersections[x][y - 1] == player) ||
				(y < boardSize - 1 && intersections[x][y + 1] == player);

	}