4. Nxe4 maybe?
7. Now you've allowed the pin you should probably bring the bishop to b2 (otherwise why play b3?). You just replace the knight being pinned to the king with it being pinned to the queen and can't adequately defend it.
17. b4?
You're just moving your rook aimlessly at the end.
I am fairly new to the openings and strategy of chess, so when I play against players who know at least on opening well, I have a hard time winning a game. I hope to get some analysis so that I might learn something from one of my games against my friend.
Thank you in advance!!!!