math for matching bonus game