fixed issue where zig zag was not being identified because list order matters, so changing to a set
Merge pull request #1483 from nlake44/zigzagfix

Awesome one-liner! Go on!