cycle through the path

added a cycle option to cycle through the path