Bug fixes

fixes infinite loop problem
adds percentage chance of generating new word
draft 1