Fix backtracking bug in original version of sudoku solver