Moved function validateGuess above button click

Still not working.