Team Y Pull Request

The previous word was not saved. We added the save at the end of the loop for the previous word.