included check function to ensure board elements are consistent with the rules of sudoku