     var playerB: AKAudioPlayer!
     var playerReference: AKAudioPlayer!
     var audioFolderURL: URL!
-    var folderList: NSArray!
+    var folderList: [String]!
     var totalQuestions = 0
     var currentQuestion = 1
     var correctAnswers = [Int]()

        return true
    }
    
    func randomiseCorrectAnswers() {
        correctAnswers.removeAll()
        for i in 1...totalQuestions {

        audioFolderURL = URL(fileURLWithPath: "audio", relativeTo: Bundle.main.bundleURL)
        
        do {
            folderList = try FileManager.default.contentsOfDirectory(atPath: audioFolderURL.path) as [String]
            folderList = folderList.sorted { $0.localizedStandardCompare($1) == ComparisonResult.orderedAscending }
            print (folderList);
        } catch let error {
            print("Error loading audio files: \(error.localizedDescription)")
        }
