general solution for russian roulette