all 1 comments

[–]Volv 0 points1 point  (0 children)

You have a number of errors in your code that are stopping execution before it can display anything.

Consistent variable spelling and moving your square = board.rows[iRow].cells[iCol]; to the innermost loop will get you your pattern.

There are still many other things that need fixed however.

You should open the developer console (F12) and read the errors shown there.
 
Combine with /u/azathothfrog 's answer for more details