Nice! You have it nailed. Now, you can decide with probability p exactly with coin flips.
Simply write p as a binary number and flip until the number the flips give is not equal to the
binary p. Flip number less than p, call the decision made; greater than p, call it not made;
equal to p so far, flip again. You could be in for a lot of flips, however. It's interesting to
see what the winning flip probability and associated win probability are as the number of
players approach infinity.