A* pathfinding functions, useful for moving characters around the world without walking them through walls etc.