Card matching game, assignments 1-3 for Stanford CS193