Added ! to isGuessValid()