@Override
	public void onAllowedToBid(AllowedToBidEvent allowedToBid) {
		System.out.println(this.getCustomerName() + " received allowed to bid.");
		if(allowedToBid.getSale().getClass().getSimpleName().equals("Auction")){
			if( ((Auction)(allowedToBid.getSale())).getCurrenPrice() + nextUP <= maxPrice && ((Auction)(allowedToBid.getSale())).getCurrentBider() != this){
				try {
					sleep(100);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				((Auction)(allowedToBid.getSale())).onBidEvent(new BidEvent(this, ((Auction)(allowedToBid.getSale())).getCurrenPrice() + nextUP));
			}
			else if( ((Auction) (allowedToBid.getSale())).getCurrenPrice() + nextUP > maxPrice && ((Auction)(allowedToBid.getSale())).getCurrentBider() != this){
					System.out.println("Customer: " + custName + " is outbided");
			}
		}else{
			try {
				sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			((Bid)(allowedToBid.getSale())).onBidEvent(new BidEvent(this, maxPrice));
		}
	}