drawing squares through Frame