added multiple leagues and redirected output to a file