private void ordering(Cashier cashier) {
        try {
            Thread.sleep(100);
        } catch (InterruptedException e1) {
            e1.printStackTrace();
        }
        while(true){
            int rand = MyRandom.nextRandom(100);
            //System.out.format(this.toString()+"'s next move: %s%n", rand);
            if(rand < 75){
                int numberOfProducts = restaurant.getProducts().size();
                int numberOfExtras = restaurant.getExtras().size();
                Product nextProduct = restaurant.getProduct(MyRandom.nextRandom(numberOfProducts));
                Extra extra = restaurant.getExtra(MyRandom.nextRandom(numberOfExtras));
                nextProduct.addExtra(extra);
                cashier.modifyOrder(nextProduct);
                try {
                    Thread.sleep(100);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            } else 
            if(rand < 90) {
                cashier.finishOrder();
                restaurant.addCashier(cashier);
                break;
            } else 
            if( rand < 95){
                System.out.println("Yay I'm getting a discount!");
                cashier.getDiscount();
            } else
            if(rand < 100){
                restaurant.addCashier(cashier);
                System.out.println("ANGRY");
            }
        }
    }