Rough implementation of grouping matches together to minimze the # of
unique paint operations.