sudoku scans and outputs properly