Utilization of produced gas of CO2 flooding to improve oil recovery