add zigzag solution