     @IBOutlet weak var labelScore: UILabel!
     
     var locationManager = CLLocationManager()
+    var timer: NSTimer?
 
     override func viewDidLoad() {
         super.viewDidLoad()

            self.mapView.showsUserLocation = true
            self.locationManager.startUpdatingLocation()
        }
    }

    override func didReceiveMemoryWarning() {

        
        let refreshRate = NSUserDefaults.standardUserDefaults().integerForKey("refreshRate")
        
        self.timer = NSTimer.scheduledTimerWithTimeInterval(Double(refreshRate), target: self, selector: #selector(MainViewController.update), userInfo: nil, repeats: true)
    }
    
    override func viewDidAppear(animated: Bool) {
