https://en.wikipedia.org/wiki/Mechanism_design
The objective is designed as part of the game, but it's very difficult to get the incentives right.