Team UKY-JPEG Pull Request

Added a line setting prevWord = curWord. This fixes the program.