public void move(double targetX, double targetY) {

        if (this.x + this.dx - this.size/2 >= xBoundary) {
            this.dx = Math.abs(this.dx)*-1;
        }
        if (this.x + this.dx - this.size/2 <= 0) {
            this.dx = Math.abs(this.dx);
        }
        if (this.y + this.dy - this.size/2 >= yBoundary) {
            this.dy = Math.abs(this.dy)*-1;
        }
        if (this.y + this.dy - this.size/2 <= 0) {
            this.dy = Math.abs(this.dy);
        }

        this.x += this.dx;
        this.y += this.dy;

        this.drawShape();
    }