Rudimentary card matching (buggy)