Algebraic Geometry and Path Integrals for Closed Strings