private void attemptUse(Command command) {
        if (!command.hasSecondWord()) {
            System.out.println("Use what?\n");
            return;
        }

        String name = command.getSecondWord();
        // look for item in player's inventory and use it if found (only takeable items)
        Item item = player.getItem(name);
        if (items.get(name) == null) {
            System.out.println("Use what?\n");
            return;
        }
        if (items.get(name).getTakeable()){
            if (item == null) {
                System.out.println("There is no such item in your inventory.\n");
                return;
            }
            use(item);
            return;
        }
        // look for item in the room and use it if found (only non-takeable items)
        item = player.getLocation().getItem(name);
        if (item == null) {
            System.out.println("There is no such item here.\n");
            return;
        }
        use(item);
        return;
    }