97 Honda Accord misfire issue
My name is Cody and I watch your youtube channel whenever I have free time. I recently purchased a 97 Honda Accord for 500 and the previous owner said it had a misfire. I drove it a little bit and i noticed that it idles rough, drives really loud, and i have to put more force into the gas pedal than previous cars i have driven. I was coming home from work a couple of days ago and i noticed that when I was at a stop light my rpm dropped all the way and the car cut off. i had to start it while i gave it a little gas for it to continue to run and i was going about 50 and the speed started to drop, rpm was about 5000 and wouldn't go into gear, and my break pedal was getting harder and harder to push. I put in a new air intake hose, cleaned the EGR valve, cleaned the intake valve and still no results. the only thing i haven't done yet is a compression test. The codes i got were EGR insufficient flow detected, cylinder 2 3 &4 misfire, random misfire. I've been trying to fix it up my self for about 3 weeks now. I would love your opinion on the situation. I'm still learning about cars and would love to know more. It's a 4 cylinder non vtech with 170000 miles on it. I replaced the spark plugs as well and the coil wires do have spark when I tested them.