             let url = NSURL(string: apiURL)
             
             let task = NSURLSession.sharedSession().dataTaskWithURL(url!) {(data, response, error) in
-                var enemies = [Enemy]()
-                
                 do {
                     let json = try NSJSONSerialization.JSONObjectWithData(data!, options: .AllowFragments)
                     

            task.resume()
        }
        
        self.locationManager.stopUpdatingLocation() // Stop updating the location so we can zoom around the map
    }
    
    func locationManager(manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) {
//        print(newHeading.magneticHeading)
    }
    

import CoreLocation
import CoreMotion
import AVFoundation
import AudioToolbox

class Enemy: NSObject { // Used to make an array of enemies from the database
    var latitude : Double = 0.0 // Initialize to a "null" double
