Moving objects along a polygonal path