basic card matching game working