Global Solution of a Functional Hamilton-Jacobi Equation associated with a Hard Sphere Gas