bug with measuring the distance from the intersection
also simplified epsilons
now memorizing vertices, not walls, works good, still no pathology
simplified epsilons