Generates path and returns result. Stops building all_seen_words once it sees the target