     return colors[value];
 }
 
-void renderBoard() {
+void renderBoard() {    
     byte A = color(15) % 2     << 0
            + color( 1)         << 1
            + color( 2)         << 4

    }

    // Read inputs
    int upVal = analogRead(UP_PIN);
    int rightVal = analogRead(RIGHT_PIN);
    int downVal = analogRead(DOWN_PIN);
    int leftVal = analogRead(LEFT_PIN);

    // Confirm that there was no previous button press (so we don't respond too many times)
    if (!buttonPressed) {
        // Make a move
        if (upVal) {
            buttonPressed = true;
            makeMove(UP);
        }
        else if (rightVal) {
            buttonPressed = true;
            makeMove(RIGHT);
        }
        else if (downVal) {
            buttonPressed = true;
            makeMove(DOWN);
        }
        else if (leftVal) {
            buttonPressed = true;
            makeMove(LEFT);
        }

    else if (!upVal && !rightVal && !downVal && !leftVal) {
        buttonPressed = false;
    }
    
    delay(100);
}

/****************************************
