In checkDupes(), now setting the current word to the previous word at the end