started implementing the word finder algorithm