Empty cells and touching equal pairs are counted and the pairs linked with lines, and once both hit zero the tiles fall and bounce one by one and a new board stacks in from above

Counting the pairs left