valid-sudoku modified to a more reasonable ver