public void move() {
        if (dx > 0 && (x+dx+craftSize/2) < 600) {
            x += dx*Math.abs(Math.sin(currentDirection.getRotation()));
            trail.createPoint((int)this.x, (int)this.y);
        } else if (dx < 0 && (x+dx-craftSize/2) > 0) {
            x += dx*Math.abs(Math.sin(currentDirection.getRotation()));
            trail.createPoint((int)this.x, (int)this.y);
        }

        if (dy > 0 && (y+dy+craftSize/2) < 600) {
            y += dy*Math.abs(Math.cos(currentDirection.getRotation()));
            trail.createPoint((int)this.x, (int)this.y);
        } else if (dy < 0 && (y+dy-craftSize/2) > 0) {
            y += dy*Math.abs(Math.cos(currentDirection.getRotation()));
            trail.createPoint((int)this.x, (int)this.y);
        }
    }