factored win-loss matrix code into a method in standings.py