A Reactive Agent for the Pickup and Delivery Problem