If this method is exporting to a file why it needs to know the algorithm, can we just only send the sudoku_solved and not the algorithm object?