Remote vehicle ignition - code help.

I am using external pull up resisters.
When i hold the switch down after the delay, the ignition relay doesn't close, which is fine. (basically the car is running, it doesn't need to fire the ingition relay) but when i release the switch, it doesn't fire the ignition relay, because the code has already moved on to the next lines.

The thing i want is, after the delay, i want it to check to see if the alternator pin is low (car is not running), if it is, then fire ignition relay until the alternator pin goes high, i.e, the car has started. i could just add a delay instead of having it sense that the car has started, but on cold mornings, it takes a little bit longer for the car to start.

Regards, Matt.