About this CODE can anyone help me!

Hi i got this code from my slider puzzle games but i dont know where i’m gonna put my code for “Well Done!” when the puzzle is finished caould someone help me where can i put this code??? if (i == 0) {
txtMessage.text = “Wel Done!!”;
}

on this coding==============================================

xBox=0
yBox=0;
tempPos=random(9)+1;
game=true;

for (i=1;i<10;i++)
{
duplicateMovieClip (box,“box” + i, i)
if (_name != “box”) {
setProperty (“box” add i, _x, xBox);
setProperty (“box” add i, _y, yBox);
_root[“box”+i].gotoAndStop(randomNumbers[i-1]);
_root[“box”+i].img = randomNumbers[i-1];
_root[“box”+i].num=i;
if (randomNumbers[i-1] == tempPos) { _root[“box”+i].gotoAndStop(10); _root[“box”+i].img = 10; } }

if ((i==3) or (i==6)) { yBox+=72; xBox=0; } else { xBox+=72; var success = 1; }
}