public void pickupItem(Command command)
    {
        int itemNumber;
        
        //Check if the player has less than 4 items
        if(player.getInventorySize() < 4)
        {
            if(!command.hasSecondWord()) {
                // if there is no second word, we don't know what to pick up
                System.out.println("Wat oppakken?");
                return;
            }
            
            //Try if input if numeric
            try {
                itemNumber = Integer.parseInt(command.getSecondWord()) - 1;
                
                //Compare room and inventory items again
                compareRoomInventoryItems();

                if(rooms.get(player.getCurrentRoomID()).getItems().size() > itemNumber)
                {
                    //Get Item object
                    Item pickupItem = rooms.get(player.getCurrentRoomID()).getItem(itemNumber);

                    //Add item to inventory
                    player.addItem(pickupItem);

                    System.out.println("Het voorwerp '" + pickupItem.getItemName() + "' zit nu in je tas.");

                    //Compare room and inventory items again
                    compareRoomInventoryItems();
                }else
                {
                    System.out.println("Voorwerp bestaat niet!");
                }
            }catch(Exception e)
            {
                System.out.println("Het item wat je opgaf is ongeldig, dit moet numeriek zijn!");
            }

        }else
        {
            System.out.println("Je hebt ruimte voor maar 4 items! Wil je iets oppakken? Dan zul je toch echt");
            System.out.println("iets moeten laten vallen " + player.getPlayerName() + " !");
        }
    }