Sudoku checker in C++ (9x9 grid)