If they alternated directions, increasing the distance walked each time by a constant factor (e.g. triple), then an exit in either direction would be reached without too much wasted time.
If the distance is not more than he can manage before sleeping. The story isn’t really about overcoming physical barriers, but mental ones. Thank you for your feedback