Fix issue with generator output
Adding checking of sudoku before solving