Tiles in minesweeper

whenever im testing this code and i click it doesnt the costume and im worried that the numbers arent correct (like tile labeled 2 actually is 3) anyone know how to fix this and know if the nums are correct
https://snap.berkeley.edu/snap/snap.html#present:Username=aaronator1234&ProjectName=minesweeper%202

You are repeatedly redrawing the board, and each time you make a new set of clones, but you never delete the old clones, so eventually you have 5000 clones all running the same program.

I would just make one set of clones, and just have a WHEN I AM CLICKED script that will cause the clone that was clicked to change its costume.