new bug, g generates words twice
letter vaues are stored and printed throgh p