sudoku-solver: simplify code