inventory logic and taking objects.