Not horribly played. Raise more preflop to weed out some of those limpers.

With more experience you will learn to pick up on betting patterns that smell of a strong hand such as 2 pair or a concealed set ie. smooth call, smooth call and huge AI river bet. The only $ you would have saved was to fold to his river bet. Few opponents have the guts to put you AI on the river with just top pair. On the other hand, there are some really loose idiots where you will go to the river everytime with TPTK because ther is a high liklihood that they are overplaying TPcrapK.

I have lots of experience and have run into a horrible streak where I am getting my sets busted by flushes and str8. It is a combination of bad reads and bad suckouts. I make big bets when there are obvious raggy str8 draws or flush draws and fail to make the tough laydown because of the remote possibility that they have the nuts on such a raggy board.