Everything in a circuit has to be in a loop that starts at one end of a battery and finishes at the other end. Otherwise it will not work. The key thing is making sure that all wires are attached firmly.