First try for a "card constructor"

creates an array of hidden cards. Shows the hidden card if you click the image and show the code.png if you click again.