add 'saveSolution' method

+ save solved sudoku to .csv file
fix 'write' to file bug