I wrote by mistake t1 and t2
So, I should add an event listener to m1 and m2 for mouse click like this?
m1.addEventListener(MouseEvent.CLICK,movePieces);
m2.addEventListener(MouseEvent.CLICK,movePieces);
And where should I place the ENTER_FRAME listener?