nmaleague function

Generating a league table