It's been close to a year since the manga ended and you're still confused.
bz solos
It was actually entirely BZ's plan, and Madara failed miserably.
technically he win against bz.. he see its error at the end... not even bz OR KAGUYA OWN HIM ITS JUST he died when biju was extracted... no plot saves him unlike nardo , obito, bz..so6p, and kushina.. only madara is restricted.agreed. black zetsu was the ultimate manipulator, hiding in the shadows of the series, hidden so well we didnt get to like him before he turned out to be FV. Madara (at least the name madara) was out in the open, secretly controling the akatsuki.
theres a level of manipulation that just gets stupid after a while. Kaguya was controlling BZ, who manipultated Madara into convincing Obito to make Nagato start the Akatsuki.
BZ created this whole manga. Pay your dues to him, Madara was a puppet.