I have drawn a setup for this one. On the left side is just a representation of the rules, combined where straightforwardly possible. It seemed beneficial to do templates for this game, so I did so - one where M is before P, and one where that's not true. In the diagram where M is before P, there is no chance for J to be 1st, so the third rule is irrelevant in that one. However, in the template where P is before M, there is a chance that J is 1st, so I repeated the third rule to make it easier to remember that this rule can be triggered in that template and always has to be considered.