Compute the guessIndex only once per guess