modified bad capture prune in search: it is only done if we arent giving check