working version of roulette