Added a few utility functions for player scripts. See if can walk freely towards a position and several getClosest* methods.