solution to exist (word search)