Also, you might want to write some code to prevent you from placing items in the wrong slots.
The code mostly works. The Item slots with a ring and a plus are universal slots.
Ah, ok. I had assumed they were supposed to be accessory slots, for things like rings, necklaces, and bracelets.