Merge me and Ben's function
Add implementations for clearPackages and purchaseProbability to FlightAgent