I did some math to figure out what the optimal number of atoms in a chain to make before starting to pass it left/right for max distance, and it came out to one atom to the left, and two to the right (I start passing left first), which is definitely optimal for my strategy, but there's very likely a strategy I haven't thought of yet (not to mention I haven't optimized for cost at all yet)