prob 18, pyramid pathing