Task 3

The third task is to trace the path of a moving circle 

while also counting the number of squares that appear briefly.