public void done()
    {
        if(!moving)
        {
            Game.paths.clearPaths();
            done = true;
            moved = true;
            pX = x;
            pY = y;
            listButtons(false);
            Game.gui.unitUpdate(this);
        }
    }