- added addItem method to the Player class that handles correctly adding
an item to the inventory