Drag the color square to the corresponding grid, when three or more same color, these square will be removed. When the grid is no rest, then game is over.