Added ai pathfinding