private String getBetterResponse(String input)
    {
        // Current style - each buzzword recognised returns related response.
        // The input is split at the spaces and placed into an array collection.
        String[] wordArray = input.split(" ");
        // A variable that will store the final answer for the user.
        String finalOutput = "";
        // This iterates over the keys that are stored in the HashMap - responseMap.
         for (ArrayList<String> arrayList : responseMap.keySet()) {
             // This iterates over each of the words stored in each of the ArrayLists(Keys)
             for(String buzzWord : arrayList) {
                 // This scans each word of the input.
                 for(int i = 0; i < wordArray.length; i++) {
                 // puts it into variable
                 String str = wordArray[i];
                 // if the word stored in the variable matches a buzzword
                 if(str.equals(buzzWord)) {
                     // then get the associated response (value) and store it into
                     // variable. 
                     finalOutput += responseMap.get(arrayList) + " ";
                 }
               }
          }
        }  
        
        // If there are no matches with any of the user's input words. Then generate a 
        // default response.
        if(finalOutput.equals("")) {
            finalOutput = getDefaultResponse();
        }
        return finalOutput;
    }