added bad capture prune in search