Good question, I have no idea but thinking about it, I'm guessing you would need an array to store the previous locations. Kind of like storing old velocities, but the really hard part is figuring how to move them again when the snake head pulls the slack. You would also have to move those pieces along a stored vector.