Although Obito is shown dense, he matures into an intelligent character. His change can be attributed to the influence of Madara and the painful moments he had to endure. Furthermore, Tobi has Zetsu on his side. And the power of teleportation. These two powers always give him a strategic advantage.