auto-solve the sudoku