public static void removeIfCaptured(Board board, int player, int x, int y) {
		if (board.intersections[x][y] == player) {
			List<Intersection> group = getGroup(board, x, y);
			if (countLiberties(board, group) == 0) {
				board.captures.addAll(group);
				for (Intersection intersection : group) {
					board.intersections[intersection.x][intersection.y] = Board.UNPLAYED;
				}
			}
		}

	}