public boolean pickAndExecuteAnAction() {
		try{
		for(int i=0; i<Orders.size(); i++){
			if(Orders.get(i).s == OrderState.needToRestock){
				OrderFood(i);
				return true;
			}
		
		}
		

		
		for(int i=0; i<Orders.size(); i++){
			if(Orders.get(i).s == OrderState.pending){
				TryToCookIt(Orders.get(i), i);
				return true;
			}
		
		}
		
		for(int i=0; i<Orders.size(); i++){
			if(Orders.get(i).s == OrderState.done){
				plateIt(Orders.get(i));
				return true;
			}
		}
		
		for(int i=0; i<Orders.size(); i++){
			if(Orders.get(i).s == OrderState.giveToWaiter){
				giveFoodToWaiter(Orders.get(i), i);//cookIt(Orders.get(i));
				return true;
			}
		
		}
		
		checkInventory();//comment this out to prevent the cook from checking his inventory
		return false;
		}
		catch (ConcurrentModificationException e) {
			
			return false;
		}
	}