Bugfixes

Some bugs introduced in the last commit, and fixed some bugs
related to what is considered a correct, wrong, or invalid guess.