working on probabilistic-backtracking-search