Pathfinding and click-to-move implemented