forked from: match 3 puzzle remove block algorithm

※ 勘違いして「ラインの数」を数えてます。
もしそういうルールだったらということで…