You had played for too long and got stubborn. Should have folded pre-flop.