Adding 3-card match functionality

Assignment 2 of the Stanford class