     
     override func viewDidLoad() {
         super.viewDidLoad()
+        let loaded_data = loadDrumKits()
+        drumKits = loaded_data.0
+        selectedDrumKit = loaded_data.1
         
         //set the time to "now" for all instruments
         players["Hi-Hat"]!["time"] = Date()

    var gestures = ["['Gesture 1']":Gesture(id: "['Gesture 1']",gesture_name: "Low Hit", gif_name: "popcorn",instrument: "Snare"),
                    "['Gesture 2']":Gesture(id: "['Gesture 2']",gesture_name: "High Hit",gif_name:"popcorn",instrument: "Hi-Hat"),
                    "['Gesture 3']":Gesture(id: "['Gesture 3']",gesture_name: "Flipped Hit",gif_name:"popcorn",instrument: "Toms")]
    
    var players = [
        "Hi-Hat":["filename":"hihat","index":0,"players":[AVAudioPlayer(),AVAudioPlayer(),AVAudioPlayer()]],

                
                if let prediction = responseData["prediction"] as? String {
                    
                    if let gesture = self.drumKits[selectedDrumKit].gestures[prediction] {
                        let instrument = gesture.instrument
                        
                        let date = self.players[instrument]!["time"] as! Date
