A game theoretic approach to norms