Swap gems, beat the clock, and advance levels. Clear the gems by swapping them. The gems will be cleared if a line of 3 or more gems of the same kind are there. When some gems are cleared, new gems will be created. You need to clear gems as quickly as possible in order to advance to the next level.