[CentOS] Finding matching words in a word game