 void moveMotor(int motorNum)
 {
     power_twi_enable();
-    Adafruit_StepperMotor *motor;
-    if (motorNum = 0) { motor = motor1; }
-    else if (motorNum = 1) { motor = motor2; }
-    motor->step(STEPS_TO_INCREMENT/2,FORWARD,DOUBLE);
-    motor->step(STEPS_TO_INCREMENT,BACKWARD,DOUBLE);
-    motor->release();
+    if (motorNum == 0)
+    {
+      motor1->step(STEPS_TO_INCREMENT/2,FORWARD,DOUBLE);
+      motor1->step(STEPS_TO_INCREMENT,BACKWARD,DOUBLE);
+      motor1->release();
+    }
+    else if (motorNum == 1)
+    {
+      motor2->step(STEPS_TO_INCREMENT/2,FORWARD,DOUBLE);
+      motor2->step(STEPS_TO_INCREMENT,BACKWARD,DOUBLE);
+      motor2->release();
+    }
     power_twi_disable();
-} //*/
+}

    Serial.print(F("Replacing pellet #"));
    Serial.print(String(inputNum + 1));
    Serial.println(F("..."));
    //moveMotor(inputNum);
    //motor1->step(99900,FORWARD,DOUBLE);
    delay(200);
  }
  
  else if (PIStates[inputNum] == 0 & PIStates[inputNum] != lastStates[inputNum]) {


void updateDisplay()
{
  Serial.println("aaa");
  clearDisplay();
  delay(2);
  if (pelletCount[0] % 100 < 10)
