End of Lecture 3 (working for matching two cards)