Digital Ground/Analog Ground, Arduino Gets Stuck!

i TRIED running the CODE without the MOTORS connected, and it worked fine

That screams that it is a decoupling problem.