.
american roulette algorithm phfs