Assignment Games with Externalities And Matching-Based Cournot Competition