public boolean pickAndExecuteAnAction() {
		
		if(!payments.isEmpty()){
			for(Payment p: payments){
				makeTransaction(p); 
				return true;
			}
		}
		
		if(!marketpayments.isEmpty()){
			synchronized(marketpayments){
				for(MarketPayment m: marketpayments){
					PayMarket(m);
					return true; 
				}
			}
		}
		
		if(!checks.isEmpty()){
			synchronized(checks){
				for(Check c: checks){
                    if(c.paid == false){
                            if(c.getCheckTotal() == 0.0){ 
                                    calculateBillTotal(c);
                                    return true;
                            }
                    }
				}
//				for(Check c: checks){
//					if(c.state.equals(CheckState.needsToBeCalculated)){
//							calculateBillTotal(c);
//							return true;
//					}
//				}
			}
		}
		

		return false; 
	}