 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

    func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
        let location = locations.last
        
        let center = CLLocationCoordinate2D(latitude: location!.coordinate.latitude, longitude: location!.coordinate.longitude)
        
        let zoom = 0.0035
        let region = MKCoordinateRegion(center: center, span: MKCoordinateSpan(latitudeDelta: zoom, longitudeDelta: zoom))
        
        self.mapView.setRegion(region, animated: true) // Zoom into the user's current location
        
        if !enemiesLoaded {
            enemiesLoaded = true

    
    override func viewDidLoad() {
        super.viewDidLoad()
        
//        AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))
        
        let gunFireFile = NSBundle.mainBundle().URLForResource("fire", withExtension: "mp3")
        do {
