Update wordgen.cpp