Some refactoring for the match management.
Fixed add league issue