[Nano ESP32-S3] Motors are working off of completely wrong Arduino pins

Attaching one ground pin to the next ground pin without a central bus. This method still has a common ground reference, but distance at the ends might effect their reference.

Are the Uno and Nano ground pins connected (to each other)?