private Vector enemyPixelMovement(Point goal) {
        //   Point goal = board.getCastle().getCenterOfObject();

        Point enemyPos = this.getPixelPosition();
        int deltaX = goal.getX()-enemyPos.getX();
        int deltaY = goal.getY()-enemyPos.getY();
        Vector newPos;
        // kollar vilket håll som enemy ska gå
        int moveX, moveY;

        // check for how far it should move and if if the direction should be pos or neg.
        if (abs(deltaX) > pixelSpeed) {
            moveX = pixelSpeed;
            if (deltaX < 0) moveX = -moveX;
        } else {
            moveX = deltaX;
        }
        if (abs(deltaY) > pixelSpeed) {
            moveY = pixelSpeed;
            if (deltaY < 0) moveY = -moveY;
        } else {
            moveY = deltaY;
        }


        if (deltaX == 0 && deltaY == 0) {
            newPos = new Vector(0,0);
        } else {
            if (abs(deltaX) != 0) {
                newPos = new Vector(moveX, 0);
            } else {
                newPos = new Vector(0, moveY);
            }
        }

        return newPos;
    }