As I am driving my car, it seems like it loses power. When I press on the gas, it does not speed up. It eventually slows down to a stop and then all the lights come on. I have to turn the car off and if I let it sit a little while it will start up again like nothing is wrong and it will drive for a mile or two then die again. I noticed if I let it sit longer in between driving it, it will drive longer distances. What kind of problem is this and what do I do to fix it?