After Ender wins the final “game” in which he sacrifices most of his fleet to wipe out the alien Formics, it is revealed that it wasn’t a game. Ender had actually been commanding the fleet remotely and had just sacrificed thousands of humans to commit genocide against another race.