update unit 3 prob set 1 (sudoku test) with cleaner logic for check_rep_subgrid(grid) function