Remember that the use of hard coded values is not a good approach, in this case the '0' has a meaning, and is that represents an empty spot in the sudoku, so it will be better if you have a constant for that empty spot, if this change it will be more manageable than having hard coded values