Thanks for the info. My current method could be the most efficient I'm just looking for a shortcut of doing the following.
X=0, y=0 : item added. Now I need to add all of the associated attributes for that item to 0,1 0,2 0,3 pushing all of them separately for that stored item. This is because I cannot push an object to the array (which could have defined instance variables).
When I add a new item it will be pushed to x=1, y=0. Then all associated attributes for that item such as the amount of them in the inventory, the type etc will be stored under 1,1 1,2 1,3 etc.
Yes this works kinda like a table storage for all of the items but just wondering if there was a way to simply add items on x=0 only and have access to its attributes elsewhere or stored in a better way.