@Override
	public PlayerAction chooseAction(State state, IPlayer player) {
		lastAction = new PlayerAction();
		lastAction.oldStake = player.getCurrentBet();
		PlayerAction.ACTION[] actionArray = PlayerAction.ACTION.values();
		lastAction.action = actionArray[generator.nextInt(actionArray.length)];
		
		if(state.getBiggestRaise() - player.getCurrentBet() <= 0 && lastAction.action == ACTION.FOLD) {
			lastAction.action = ACTION.CALL;
		}
		
		if(lastAction.action == ACTION.CALL) {
			lastAction.toPay = calculateCall(state, player.getCurrentBet());
		} else if(lastAction.action == ACTION.RAISE) {
			lastAction.toPay = calculateRaise(state, player.getCurrentBet());
		}
		return lastAction;
	}