working nested loops!

nested loop draws multiple boxes from a single loop