Complex sentence: The Device destroys the planet and the entire Bugger fleet, but as the simulation ends, Ender is surprised to find the IF commanders celebrating.
Split into simpler sentences: The Device destroys both the planet and the entire Bugger fleet. As the simulation ends, Ender is surprised to find the IF commanders celebrating.