Create lines of three or more in the same colour group to get rid of them. Click on two gems consecutively to swap their positions. If they lock with another colour group of two or more, you're on. If not... you've just wasted time on that move!
Grace under pressure is the key here. Focus and an unflappable nature will get you through. So will basic ability in shape-recognition!