added the code to determine if the driver has enough gas