public void processRequest(Order order, int x){
		int orderSize = 0;
	
		/*if(stockMap.get("steak").amount > 0){
			//if(stockMap.get("steak").amount >= order.cookInventory.get("steak").capacity){
			orderSize = order.cookInventory.get("steak").capacity - order.cookInventory.get("steak").amount;
			
			if((stockMap.get("steak").amount - orderSize) >= 0){
				order.cookInventory.get("steak").amount = orderSize;
				stockMap.get("steak").amount = stockMap.get("steak").amount - orderSize;
				//print("We will give you " + orderSize + " steaks");
				cook.msgHereIsOrder(order.name, order.cookInventory);
				order.s = OrderState.sent;
				stateChanged();
			}
			else{
				order.cookInventory.get("steak").amount = stockMap.get("steak").amount;
				stockMap.get("steak").amount = 0;
				cook.msgHereIsOrder(order.name, order.cookInventory);
				order.s = OrderState.sent;
				//print("We will give you " + orderSize + " steaks");
				stateChanged();
			}
		}
		else{
			//print("Steak is out of Stock!");
				cook.msgOutOfStock("steak");
				order.s = OrderState.out;
				stateChanged();
		}*/
		
		for(int i=0; i<4; i++){
			String foodItem = "";
 			if( i == 0){
 				foodItem = "steak";
 			}
 		
 			if(i == 1){
 				foodItem = "chicken";
 			}
 			
 			if(i == 2){
 				foodItem = "salad";
 			}
 		
 			if(i == 3){
 				foodItem = "pizza";
 			}
 		
 			if(stockMap.get(foodItem).amount > 0){
			//if(stockMap.get(foodItem).amount >= order.cookInventory.get(foodItem).capacity){
				orderSize = order.cookInventory.get(foodItem).capacity - order.cookInventory.get(foodItem).amount;
			
				if((stockMap.get(foodItem).amount - orderSize) >= 0){
					order.cookInventory.get(foodItem).amount = order.cookInventory.get(foodItem).amount + orderSize;
					stockMap.get(foodItem).amount = stockMap.get(foodItem).amount - orderSize;
					order.cost = order.cost + stockMap.get(foodItem).price*orderSize;
					//print("We will give you " + orderSize + " " + foodItem);
					
				}
				else{
					order.cookInventory.get(foodItem).amount = stockMap.get(foodItem).amount;
					stockMap.get(foodItem).amount = 0;
					order.cost = order.cost + stockMap.get(foodItem).price*orderSize;
					//print("We will give you " + orderSize + " " + foodItem);
				}
			}
			else{
				//print("" + foodItem + " is out of Stock!");
					cook.msgOutOfStock(this, foodItem);
					//order.s = OrderState.out;
					stateChanged();
			}
		}
		cook.msgHereIsOrder(order.name, order.cookInventory);
		cashier.msgPayMarket(this, order.cost, x);
		order.s = OrderState.sent;
		stateChanged();
	}