Its either you die a hero or you live long enough to see yourself become the villain... Maybe Madara master plan is to become the villain so that the entire shinobi world could unite to take him down. So the cycle of hatred could end that's my theory. Madara the man to end the cycle of hatred.