     }
     
     func angleTo(lat1: Float64, lon1: Float64, lat2: Float64, lon2: Float64) -> Float64 {
-//        let pi = 3.14159
-//        var angle = atan2(lat2 - lat1, lon2 - lon1) * 180/pi
-//        
-//        if (angle < 0){
-//            angle += 360
-//        }
-//        
-//        return angle + 90;
-        
-        print(lat1, lon1, lat2, lon2)
-        
-//        let φ1 = toRadians(lat1)
-//        let φ2 = toRadians(lat2)
-//        let λ1 = toRadians(lon1)
-//        let λ2 = toRadians(lon2)
-//        
-//        let y = sin(λ2-λ1) * cos(φ2)
-//        let x = cos(φ1)*sin(φ2)-sin(φ1)*cos(φ2)*cos(λ2-λ1)
-//        
-//        return toDegrees(atan2(y, x))
-        
         var angle = toDegrees(atan2(sin(toRadians(lon2-lon1))*cos(toRadians(lat2)), cos(toRadians(lat1))*sin(toRadians(lat2))-sin(toRadians(lat1))*cos(toRadians(lat2))*cos(toRadians(lon2-lon1))))
         
         if angle < 0 {

    var enemies = [Enemy]()
    
    let enemyRadius = 2 // Kilometers
    let shootRadius = 200.0 // In meters
    
    var enemiesLoaded = false


        
        userLatitude = location!.coordinate.latitude
        userLongitude = location!.coordinate.longitude
        
        mapView.setUserTrackingMode(MKUserTrackingMode.FollowWithHeading, animated: true)
        
