Added binary search for guessing