Passing payoff function through pointer

something wrong with put