AI: use the A* algorithm for short-range trajectories.
AI: automatically collect resources when needed for building.