public String getResponseString(ArrayList<String> words)
    {
        String input = "";
        // When a collection of words arrive here then the collection is transferred into a 
        // single string variable.
        for(String word : words) {
            input += word + " ";
        }
        // This fills the response map again so a different random response is associated
        // a buzzword.
        fillResponseMap();
        // This string variable input is passed to the get better response method to return
        // the most appropriate response.
        String best = getBetterResponse(input);
        return best;
    }