     var userLatitude = 0.0
     var userLongitude = 0.0
     
-    var ammo = 6
-    var canShoot = true
-    var canShootTimer = NSTimer()
+    var gunOrientation = true // Make sure we're in gun orientation before allowing a shot
+    var enemyAimedAtLatitude = 0.0
+    var enemyAimedAtLongitude = 0.0
     
     var gunFire = AVAudioPlayer()
     var gunReload = AVAudioPlayer()

                let cone = 0.1

                if abs(data!.acceleration.x) > (0.9 - cone) && abs(data!.acceleration.x) < (0.9 + cone){
//                    print("Ready")
                }
            }
        } else {

                
                if data!.rotationRate.z < -8{
                    self.gunFire.play() // Play a gun firing sound
                    print("FIRE")
                    self.shootEnemy()
                }
            }
        } else {
