Multi-player bargaining with endogenous capacity