Problem with if statement controlling 8x8 matrix

placed ; after second if statement

Why?
Did you read reply #1?