This line is a little misleading, since you're just using the old value as the guess, right? The comment makes it sound like you've got a separate array storing the guesses.  It confused me a bit.