private void look(Command command) {
        if (!command.hasSecondWord()) {
            printLocationInfo();
            return;
        }

        String secondWord = command.getSecondWord();
        if (secondWord.equals("inventory")) {
            player.printInventory();
            return;
        }
        
        Item item = player.getLocation().getItem(secondWord);
        // if the item wasn't found in the room, look in the player's inventory instead. If still not found, print an error message.
        if (item == null) {
            item = player.getItem(secondWord);
        }
        if (item == null) {
            System.out.println("There is no such item here.\n");
            return;
        }
        lookAtItem(item);
    }