Finished sudoku solving algorithm