@Override
    public void update(final GameContainer gc,final int delta) throws SlickException {
        Input input = gc.getInput(); //look for keys pressed
        if(Math.sqrt(Math.pow( Mouse.getX() - gc.getWidth() + soundButton.getWidth()/2 , 2)
                + Math.pow( Mouse.getY() - gc.getHeight() + soundButton.getHeight()/2, 2)) <= soundButton.getWidth()/2
                ){
            if( input.isMousePressed(0)) {
                if(soundOnFlag){
                myMusic.setVolume(0);
                    soundOnFlag = false;
                }
                else{
                myMusic.setVolume(1);
                    soundOnFlag = true;
                }
            }
        }
        if(myFish.status) {
            myFish.move(gc, input, delta);
            myMenu.status = !myFish.status;
            myFish.setPoints(myFish.getPoints()+screenArray.eatClose((int)myFish.xcoords,(int)myFish.ycoords));
            if(timerLocked)
            {
                startSampling(gc,waterline,delta);
                timerLocked = false;
            }
        }else
        {
            myMenu.show(gc, input);
            myFish.status = !myMenu.status;
            if(!timerLocked)
            {

                stopSampling();
                timerLocked=true;
            }
        }
        screenArray.CreateFly(gc, waterline);
    }