refactoring to pull nearest neighbor search into a seperate method.
Added a call to findNearest when user changes trapping area