Modify the binary search, add the interaction between user and machine.