sample, use recursive, you might consider a map to be a work sheet. some cells are occupied, some
are not, so walk alone a straight route from your place to target first, when encounter the occupied cell,
turn left, then
try proceed again, if still occupied. turn again until get through.
then
walk alone another straight route from your current place to target. . .