@Override
    public void actionPerformed(ActionEvent ae) {
        if(this.on==1){
            int deltaX = 258-x;
            int deltaY = 352-y;
            //System.out.println("DetaX: "+deltaX);
            //System.out.println("DeltaY: "+deltaY);
            int originX = x+deltaX;
            int originY = y+deltaY;
            //System.out.println("OrigenX "+originX+", OrigenY "+originY);
            //x2=originX;
            //y2=originY;
            
            if(x<258){
                    x+=1;
            }
            if(y>352){
                    y-=1;
            }
            
            if(x>258){
                    x-=1;
            }
            if(y<352){
                    y+=1;
            }
            
            if(y==352 && x==258){
                image="";
                this.on=0;
                tm.stop();
                
            }
            
            game.repaint();
            
        }
    }