When the program starts, it draws 36 cards facedown in a grid. When the user clicks on a facedown card, it is turned faceup. When the user clicks on a second facedown card, it is also turned up. On the 3rd click anywhere, if the 2 faceup cards have the same symbol, they are both removed. If the symbols are different, they are both turned facedown.