As your code currently stands, you're only parsing the user's input the first time. Inside the loop you're reading the user's input again, but you're not updating the words
variable based on the new input.
You should move this line inside your loop:
String words[] = response.split(" ");