The code for the coin flip works