Tap a tile and then a neighbouring one to swap them, or slide it. If three or more identical tiles line up, they disappear.