Update search mode much quicker by using rapid fail algorithm