implemented general idea of a word-finder algorithm. should be faster than checking on board only, but will use more memory