Attempt to finish wordgame  with while(true)

Looked up example on interent which suggested usage of the while(true)
statement. However, this new line of code takes effect immediately after
the first "true" statement (eg. first guess of a letter).