Swipe to slide every gem on the board. When two gems with the same number touch, they merge into one bigger gem. Make the target gem to clear the level. If the board fills up and nothing can move, it's game over.