On the functional equations in undiscounted and sensitive discounted stochastic games