private boolean checkRow(boolean[][] table, int i, int j, int r) {
		for (int i2 = i; i2 < i + r; i2++) {
			int count = 0;
			for (int j2 = j; j2 < j + r; j2++) {
				if (table[i2][j2] == table[i2][j]) {
					count++;
				} else {
					break;
				}
			}
			if (count != r) {
				return false;
			}
		}
		return true;
	}