Sorry, the error and the code are the same, i just explained another project I'm working on at the same time. Trying to make a new car, drive it a certain distance, get a flat tire, fix the flat, and print out the gas remaining at the end of the trip.
I've been up all night, sorry again for being scatterbrained :(