Changed the code so that the inventory properly displays updates to the number of each of its items
dealt with merge