revert previous change, didnt account for case where endpoints inside wall but edge intersects wall