By using rinnegan we can bring dead one to alive right thats what madara actually planned for himself, why dont Obito using that chance i mean use the rinnegan to bring back RIN so that there wont be any need of all this thing he can live with RIN happy