As per algorithm screenshot in #๐ฐmake-anything-machine message and verified by @heavy yoke in #๐ฐmake-anything-machine message
Line 238 231 uses shape instead of stackedShape as the argument to Op_PushPin, meaning the random stackedShape from a few lines above is lost and replaced with a copy of the current shape so far plus pins.
Maybe also worth mentioning that pushing pins like this means the total height will increase by 2, but the code does not account for this, meaning it might end up creating and stacking more layers than max. Is that intentional or was the idea to just fill in pins or something else? It could certainly still make interesting shapes as currently written. But in either case I would suggest rewriting the for loop with a fixed iteration count into a while loop that checks the shape's current height.
Thanks for the fun game!