Draw rows of squares pattern

i just tried that and it still only printed one box. Is it something with my for loop?