added pathfinding and advanced actor functions