public boolean cancelMove()
    {
        Game.paths.clearPaths();
        if(moved && !done) //If unit has made a move, but has not confirmed the action
        {
            Game.moveUnit(pX, pY, this);
            dX = pX * Game.TILESIZE;
            dY = pY * Game.TILESIZE;
            this.x = pX;
            this.y = pY;
            attacking = moved = false;
            return true;
        }
        return false;
    }