EMF from L298N triggering button?

Motors need to be powered separately from the Arduino. They create heavy electrical noise and can cause the Arduino to reset or malfunction.