You did exactly the right thing, probably you would've lost if you had tried to outplay him.
Heads up is quite difficult to play, dependent on your position and cards you have to place the right bets or raises.
If you go all in position doesn't matter anymore and bluffing isn't possible either.
|