added UIAlertView for reseting the game
logic for matching three cards, updated UI