fixed the error and added in route for add match to league