The simulator CupCarbon and boundary detection