private void takeItem(Command command){
        if(!command.hasNthWord(2)){
            System.out.println("Take what?");
        } else {
            Item i = rooms.get(currentRoom).removeItem(command.getNthSegment(1));
            if(i == null){
                System.out.println("There is no " + command.getNthSegment(1));
            } else if(i.getName().equals("key")){
                hasKey = true;
                System.out.println("You found the key to the final floor");
            } else if(!bag.addItem(i)){
                rooms.get(currentRoom).addItem(i);
                System.out.println("That is too heavy to carry");
            } else {
                System.out.println("You take the " + i.getName());
            }
        }
    }