public void attackingMove(){ 
        
        if ((getxCoord() - speed < rightBoundary && getxCoord() - speed > leftBoundary)
                && (getyCoord() < bottomBoundary && getyCoord() > topBoundary)) {
            if(getyCoord() < 117){
                setImageIcon(upBoat);
                setyCoord(getyCoord() - (speed));
            }
            else if(getyCoord() >= 117){
                setImageIcon(downBoat);
                setyCoord(getyCoord() + (speed));
            }
            
        } else {
            setImageIcon(leftBoat);
            setxCoord(getxCoord() - speed);
        }

    }