updateData() {
    ui.displayScore(this.score);
    ui.displayShoppingCart(this.score);
    this.checkUnlockBuyableItems();
    this.checkUnlockBuyableUpgrades();
    this.calculateStatistics();
  }
// updates relevant data to current state
updates relevant data to current state
updates relevant data to current state
updateData() {
    ui.displayScore(this.score);
    ui.displayShoppingCart(this.score);
    this.checkUnlockBuyableItems();
    this.checkUnlockBuyableUpgrades();
    this.calculateStatistics();
  }
updateData ( ) { ui . displayScore ( this . score ) ; ui . displayShoppingCart ( this . score ) ; this . checkUnlockBuyableItems ( ) ; this . checkUnlockBuyableUpgrades ( ) ; this . calculateStatistics ( ) ; }
updates relevant data to current state
updates relevant data to current state