public boolean mouseIsInMenuPosition(int x, int y, int xx, int yy){
        if(x>=mouseMenuButtonLeft(xx)&&x<=mouseMenuButtonRight(xx)&&y<=mouseMenuButtonDown(yy)&&y>=mouseMenuButtonUp(yy)){
            return(true);
        }
        else{
            return(false);
        }
    }