as we have seen from the last two or three chapters that obito is likely to become good because kakashi's and naruto's talk no jutsu is working on him. so suppose he becomes good and then helps everyone to kill madara and the jubi. but we also know that sasuke now knows tobi's identity and that everything happened because of him so i think that tobi and sasuke both will first help to stop the jubi and madara but sasuke would want to take revenge from obito so he will try to kill him. naruto would stop him as naruto thinks that every bad person can be forgiven and on the other hand sasuke thinks that the person must be punished so still sasuke will kill obito and then when sasuke will see that his own friend tried to stop him from killing his enemy, he will turn against naruto and then sasuke vs naruto will happen at the end.
i hope you guys will like it.