add ability to find closest wall

using a dictionary to search multiple matches