To make all these matches burn and burn you will have to square the mathematical operation that the game poses. How? For moving the number of matches that you indicate so that when you remove and put, all the numbers are squared and the result is correct.