basic card matching game from lec 3 slides