title: Xcode high score issue
body: <p>I am having an issue saving my high scores in my game.</p>
  
  <p>For example after the first game, where I am starting with a high score of zero, the high score becomes the score. However, after subsequent games the high score is not always getting overwritten at the correct time. Why is that?</p>
  
  <p>Here's the code:</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
      //
      NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
      NSString *myscore = [defaults objectForKey:@"savedstring"];
      _scoreMade.text = myscore;
  
      NSUserDefaults *defaults4 = [NSUserDefaults standardUserDefaults];
      NSString *highscore1 = [defaults4 objectForKey:@"highscore"];
  
      if(myscore &gt; highscore1) {
          _highestScore.text = myscore;
         NSString *savestring33 = _scoreMade.text;
         NSUserDefaults *defaults4 = [NSUserDefaults standardUserDefaults];
         [defaults4 setObject:savestring33 forKey:@"highscore"];
         [defaults4 synchronize];
         NSLog (@"new score");
      }
      if(highscore1 &gt; myscore){
          _highestScore.text = highscore1;
          NSLog (@"no new score");    
     }
  }
  </code></pre>