code for flipping coin
1 and 2