A02-3: Refactor a bit to make matching game any number of matches. This code needs some cleanup.