valid sudoku using 3 rules