Made the chain check against previous word as well as current word.