Added speed mutliple function

Made it so it doesn't go to next layer when out of energy