game theory for algorithm