 /* Randomly returns either 1 or 2. */
 int randomTile() {
     return random(1, 3);
-
 }
 
 /* Randomly returns the index of a row or column. */
 int randomIndex() {
     return random(0, 4);
-}
-
-/* Returns whether tile at (i, j) can be moved to (i2, j2).
- * Updates |tempBoard| if a move is possible. */
-boolean attemptTileMove(int i, int j, int i2, int j2) {
-    // No tile in the original space
-    if (tempBoard[i][j] == 0) {
-        return false;
-    }
-
-    // No tile in the new space
-    if (tempBoard[i2][j2] == 0) {
-        tempBoard[i2][j2] = tempBoard[i][j];
-        tempBoard[i][j] = 0;
-        return true;
-    }
-
-    // Identical tiles, collapse them into the new location
-    if (tempBoard[i][j] == tempBoard[i2][j2]) {
-        tempBoard[i][j] = 0;
-        tempBoard[i2][j2]++;
-
-        // They won!
-        if (tempBoard[i2][j2] == 6) {
-            gameInProgress = false;
-            Serial.println("W");
-        }
-
-        return true;
-    }
-
-    return false;
 }
void loop() {
    // Make sure we have a game going on
    if (!gameInProgress) {
        return;
    }


    pinMode(CLOCK_PIN, OUTPUT);
    pinMode(DATA_PIN, OUTPUT);

    // Seed the PRNG with the reading from an unconnected pin
    randomSeed(analogRead(A4));

    // Begin game
