steppermotor only few steps

  if (running == !running)Think about this, How can running ever equal not running ?

Just test the value of running and act on it