-added better inventory handling for inventory

- ai debugging