Problem with if statement controlling 8x8 matrix

:slight_smile: thanks, finally got it thru this dense brain.