added classes to handle ladder leagues and team leagues