Fixed a stupid bug that caused the program to crash on words larger than the character vocabulary