Team UK-Blue pull request

The first commit adds the line "prevWord = curWord" to the function checkDupes. This sets the previous word equal to the current word before moving onto the next word in the stream. The second commit is removing an unnecessary line from the code.