Start by dragging your character to the pathway. Then, follow the route that will complete the track in one line by not walking on the same path again.