needs value tolerance but base is here

lines 115-131

Ignores walls rotated at odd angles.