Determining Distance from Walls