Show that a polygonal line $\gamma$ connecting $z$ to infinity intersects the boundary of every rectangle $R$ containing $z.$
So we want to consider $t_0 = \sup \{t : \gamma(t) \in R\}$. This seems intuitive but I'm not exactly sure how to put it in words. Also the intermediate value theorem might be helpful.