Madara is in the right due to the fact that the shinoibi world that he and saratobi had lived in was filled with war and pain and madara had a way to end that pain i8n suffering even if it meant not having free will the shinobi world was not forgiving and at that he offered peace and everything everyone wanted through the infinate tsukiyomi this is in huge comntrast to what he had seen and experienced during life he had seen a repetition of pain and suffering even having it proven by pain and obito