refactored pathingmaps + geometry, enhanced tests