Having made a word game myself[0], this was highly entertaining! Thanks :)
What dictionary are you using?
[0] https://jcuenod.github.io/phrase-maze-poc/