i just bought a 2002 impreza wrx yesterday and was driving it home on the freeway and it just shut off when i was driving all the electronics turned off. then tried roll starting and all electric went back on but no power in pedal. pulled over cranks but wont start. i noticed when i first started the car before i got it it sounded like it was running on 3 cylinders but the seller said thats how they ran. and it idled real lumpy and was sluggish off the line. checked one spark plug and it gets spark. checked fuses, checked fuel pump. tried using scanner to get codes but will not give any. check engine was flashing while driving. pulled one timin cover and marks were lined up. and aslo pos. battery terminal is really loose and needs replacement. any ideas what the problem could be????