creating setcardgame matching method