public static void rooked(int i, int j, int cur) {
		max = Math.max(max, cur);
		for (int k = 0; k < size; k++) {
			for (int l = 0; l < size; l++) {
				if (m[k][l] == '.' && checkPos(k, l)) {
					m[k][l] = 'o';
					rooked(0, 0, cur + 1);
					m[k][l] = '.';
				}
			}
		}
	}