WT-100 - implemented logic for searching for the same word