Click the green flag and watch octagons merge when they intersect. Look inside to see how it works.
Most of the code by @papipupepappa remains intact. This version uses the same method as the source project but it stamps with costumes instead of the pen.