adding view logic for matching cards