Graphs refactoring, now the word ladder is working