Modelling the eccentric disc of M31