Adding code to handle league play