A judge has ordered a new trial for a South Carolina man who was 12 years old when prosecutors say he shot his grandparents to death and set their Chester County home on fire.