Rewrote inventory

using arraylist and fixed certain issues with it.