use other techqinues
use dfs and pruning