Finished implementing logic ensuring that bags cannot be placed inside itself or sub bags inside itself.
Cleaned some debug prints.