I don't know why but this code is making the animation to flick along the path when used in a for-loop with an array os Markers.