add validation in sudoku generation