Just watch!
I changed it so that instead of going for a set number of steps, it goes until they are all touching again (so it has completed a full 'loop'). Credit to Paddle2See for the original project