Seriously this is what I think!
Sasuke is using the allied shinobi and the ex hokages to destroy Madara. Somehow they do and Sasuke either takes Madara's rinnegan or unlocks his own, and uses the gedō: rinne tensei no jutsu to revive his entire clan! They try to destroy Konoha, but fail...