Hooray for Legal's mate...I always keep an eye out for the possibility just because it's cool, but as a Queen's Gambit player it doesn't turn up often. :P
Getting back on topic...eXecute, while the middlegame of your first game went rather poorly, your opponent messed up too by being unable to follow through with the attack and letting you trade down to a rook-pawn endgame (with material equality to boot!). You almost certainly had a draw there, it was an endgame mistake rather than a middlegame one that actually caused your loss (though like I said, if your opponent had played better in that middlegame you would probably have lost at that point...very soon after he started his attack you'd already lost two kingside pawns; so even if his middlegame attack had petered out he should have been able to go to a won endgame if not for a few mistakes he made).
But this is what I am talking about, why was I losing the middle game. Can't you just explain the moves that caused me to have disadvantage in the middle game?
I know I made a mistake in the end that cost me the game, but like you said, a better opponent would have killed me in middle game, and I am trying to figure out WHYYYY.... But so far, I have not been able to figure it out, other than "u shouldn't have made him get double pawn", but I have always been told in the past double pawns for opponent are good for you... So everything is contradictory to me now...
from move (one) you are playing too control then occupy the central squares. that is the battleplan! no matter what opening you play go through the center. that fight is the (middlegame!) post a knight at your opponents (e5) that cannot be removed the attack will play itself! you must always play with a plan (even a bad one!)