solve the word search problem.