What if each segment only cared about where the previous segment was:
Here, there are no arrays or looping. The 1st segment is chasing the head. 2nd one is chasing the 1st and so on…
If the tail pieces need to follow the path taken by the head precisely, I’d opt for a spline instead.