updateRotation() {
        var x; var
            y;
        [x, y] = rotate(this.leftx, this.lefty, this.parent.direction);
        this.x = x;
        this.y = y;
    }
helper function to help rotating parent