Add new logic for sudoku generation