I bought the car and it had the check engine light on. Took it home and later that day noticed it started to idle funny. Then I noticed the idle air control valve was disconnected I plugged back in and it started to stall when left idling for a little bit or when I came to a stop. Checked the codes and 6 codes popped up. But it was only 3 different codes each one just popped up twice. P0506, p0507, p0741. I replaced the the idle air control valve, it idles better now but when im driving the car and I come to a stop the car truns off, but starts right back up. So what ive been doing is when I stop I put the car in neutral and keep on the gas a little so the car stays on. Whats going on please help!