Added algo for coin and dice roll