After dealing with the problem more I found out that it is the mass air flow sensor. The car would die randomly and I unplugged the maf and the car runs. So I'm assuming it's the mass air flow sensor. Especially because it's a remanufactored one and the plastic top is coming off.