public String nextCommand() {
        command = scanner.next();
        String[] words = command.split(" ");
        for (int i = 0; i < words.length; i++) {
            String temp = words[i];
            if (listOfCommands.contains(words[i])) {
                if (isDirection(temp)) {
                    // process direction
                }
                else if (isInventory(temp)) {
                    // process inventory
                }
                else if (isAttack(temp)) {
                    //process attack
                }
            }
        }

        return response;
    }