public void Update(double speedY, int y) {
        //if (y <= 350) {
            if (speedY <= -5) {
                speed = speedY;
                this.y -= -45;
            } else if (speedY <= -3) {
                speed = speedY;
                this.y -= -30;
            } else if (speedY < 0) {
                speed = speedY;
                this.y -= -20;
            } 
        //}
        
        
        
    }