Removed unused check in word ladder