It's tough but look for opportunities to make colour bombs after every bomb you set off, and try to avoid making striped or wrapped candy as these will most likely detonate a number of colour bombs at once, making difficult to match the ones you need.