First of all, I'm kind of new to creating circuits and I'm trying to make a project that when I press one of the buttons it turns on the green LED and turns on the dc motor and when I press the other button it's opposite, red and off the motor. Like in the title says at the start and end of the circuit the Arduino board turns off which I'm presuming because it is too much or too little power to process. I tried using resisters: 1 330, 2 220 and 2 10K to try to lessen the power going through the circuit but it still won't work. Any advice/ help that will help it work thanks!
(Apologies that the wires are a bit messy)