The path integral formula for the stochastic evolutionary game dynamics