public String generateResponse(ArrayList<String> words)
    {
        //for (String word : words) 
            String response = responses.getResponseString(words);
            if(response != null) {
                return response;
            }
        
        
        // If we get here, none of the words from the input line was recognized.
        // In this case we pick one of our default responses (what we say when
        // we cannot think of anything else to say...)
        return pickDefaultResponse();
    }