public static void acceptAndUpdate(RequestsArray array, int loc, Player user){
        if(user.acceptOffer(array.getRequest(loc))==true){
            if(array.getRequest(loc)instanceof BuyRequest){
                array.incBuyVolume();
            }
            else if(array.getRequest(loc)instanceof SellRequest){
                array.incSellVolume();
            }
            array.removeRequest(loc);
        }
    }