Arduino program won't stay on when connected to a 12v battery

What about a L7808ACV voltage regulator? That puts the voltage to the ARDUINO mid range of the recommended.

BTW. Because the motor current is about 10 amps it has not connected