...If target stones have more than 3 stones as same color in a row (for right or left neighbor) or in a column (for up or down neighbor), copy the color of source stone to target stones. Otherwise, go to step 1.
4. Delete stones if there are 5 stones or greater have same color in a row or in a column.