public void onBlind(Blind blind) {
PlayerId id = getId(blind);
int amount = blind.getAmount();
// if(getGameState().get)
if(amount == getGameState().getPlayer(id).getStack())
dispatch(new AllInEvent(id, amount));
else if(amount==config.getSmallBlind() || amount==config.getBigBlind())
dispatch(new BlindEvent(id, amount));
else throw new IllegalStateException("Unknown blind amount: "+amount+" (sb="+config.getSmallBet()+")");
}