private boolean[] getAllowedValues(int row, int col) {
boolean[] valNums = new boolean[n];

// Set the initial value of all squares to true
for (int i = 0; i < n; i++)
...