iOS card matching game from Stanford CS193p course (UM CSCI 596 Assignment 1)