Swift version of the card matching game from CS193P.