Removing pf_distance stuff, adding some more performance, getting rid of addCollisionMapToField function