 int varDelayY;
 int moveX;
 int moveY;
+
+// interrupt variables
 int timerX;
 int timerY;
 boolean stateX;
 boolean stateY;
 int timerTick;
+
+// variables for reading in speed
+String str;
+int number;
  
 void setup() {
     pinMode(X_ENABLE_PIN, OUTPUT);

                break;

            case 'u':
                if (moveY == 0) moveY = -1; else moveY = 1;
                varDelayY = varDelayY + 100;
                break;
            case 'j':
                if (moveY == 1) moveY = -1; else moveY = 0;
                varDelayY = varDelayY - 100;
                break;
            case 'k':
                if (moveX == 0) moveX = -1; else moveX = 1;
                varDelayX = varDelayX + 100;
                break;
            case 'h':
                if (moveX == 1) moveX = -1; else moveX = 0;
                varDelayX = varDelayX - 100;
                break;

            case 'r':
                reset();
                break;

            default:

#define Y_MIN_PIN          14
#define Y_MAX_PIN          15

#define MIN_DELAY          100 // minimum timer tick

// these are initialized in reset()
int stepsize;
