He zigs and zags out of compassion, out of recognition of our fragility, our inability to walk aligned to the sun, our preference to shun the glare of the bright and to tolerate that light only from the gloom, but God makes room to write straight with His crooked lines
and so He completes His story.
The first line is a Portuguese proverb. See also Genesis 50, Joseph speaking to his brothers who sold him into slavery: v20 "You intended to harm me, but God intended it for good to accomplish what is now being done, the saving of many lives."