Check the validity of a sudoku board