testing + debugging isValidSolution()