refactored Sudoku