add edges between words, will probably need improvement