The thing works in a priority basis.
It pops the match3 it detects and after that if the repositioning generates new match3 it pops them, this goes on and on until there are no more match3 in the board.
So, the player has to detect a combo and use it in his advantage. Detecting good combos mean more recursive popping and more points.
This project can be a cool way to study ArrayMaker.