These ones can drive you crazy, it took me a couple scans over your code to spot it.



while (guesscheck = true) {


You wanted a "==" in there :)
What this does is first assign guesscheck...