Ruby program to find words in a word search puzzle