5. The Baltic Way: Hand in Hand, My Friend

A few people got lost and don't know where to go. When programming, such issues are easily solved by using conditions ("if..., then..."). For example, "if you turn left, then you will reach your destination". Create the conditions to eliminate gaps between people. The people must stand 40 centimeters apart.
This text is displayed if your browser does not support HTML5 Canvas.
Javascript code: