At the end of the animation, an alert is displayed with the length of the path.