update word ladder