Zig and zag

Meaning: To move or change direction repeatedly rather than following a straight or predictable course.
Example: The road zigged and zagged through the mountains.