I think it's much cleaner to describe each inventory slot with an object like this, rather than three separate objects with a relationship dictated merely by there key indices. Let me know if there's anything strange in here still.