using ArrayList instead for inventory