fixed coin toss code