Starting an entire subroutine with a single momentary button press

Thank you for the reply. I am wondering where this logic should go? When it is placed in the loop, it performs the same as before(motors only on when button is depressed). When I call the function from the setup(), it only runs for one iteration then stops.