The reason why the gorosei and Blackbeard will be in the final war is that all the planets need to align with the sun. The gorosei will not be defeat in Egg Head. So in the final war we gonna have all gorosei, Teach with Pluton, Shirahoshi and Uranus