Adding updated AI from vehicle_refactor (due to formatting problems)