Improved on algo for word search solver (not yet finished).