Payoff function now handles :random