 void serialEvent() {
     if (easyTransfer.receiveData()) {
 
-        playRandomTrack(getDirectory(message.type), message.playCount);
+        playRandomTrack(musicDir[message.type]);
     }
 }
 

    }
    Serial << F("SD OK!") << endl;

    // get track counts
    tracksBaff = countTracks(dirBaff);
    tracksWins = countTracks(dirWins);
    tracksLose = countTracks(dirLose);
    tracksRock = countTracks(dirRock);

    // show counts
    Serial << F("Track counts:") << endl;

}

// File listing helper
int countTracks(const char &dirInfo) {
    int count = 0; // track number

    File dir = SD.open(dirInfo);

    while (true) {

