fixed input and reset oldGuess