Trace 3 or more neighboring gems of one color, including diagonals. Collect 30 of each color to restore the rainbow. Tap a gnome to spend its color and drive it away.