Groom's quick thinking saves dozens of horses