full 2-card matching game as shown in lecture 3