Input sanitization on guesses
Added comments