I think that you played well, but you didn't have luck. If you only made a call on the turn on his first raise of $3, you would give him an opportunity to make flush like you said. Maybe his re-raise looks like he had very strong cards, but with another Ace on the river nobody will go fold. So for that reason I think that you played well this hand, and I, and many other players will played the same, if we were on your place.