refactor sudokuSolver