Modelling dominance hierarchies using multi-player game theory