Automatic circuit design program for round-trip trolley