Madara should've won. He literally made all the right moves. He was playing 4D chess.
He got cucked by the author.