added flip coin and test for card