Constraint a 9x9 matrix

In reply to mehul_1111:

This works for me

item1/item2 are local variable declarations for iterating over each element. It’s very similar to the foreach(a[ index]) iterator except that ‘item’ represents the actual element, instead of just the index in the foreach.