Obito was a puppetmaster himself. Think of Akatsuki, the Mizukage, the Kyubi incident or the Uchiha massacre. If Kabuto didn't edo Madara, Obito would have taken his plan completely out of his hands. I like Madara, but he was very lucky to have things ended up as they are now.