text: class GameManager{
  
    constructor(PageManager){
      this.pageManager = PageManager
      // this.gameCable = PageManager.gameCable
      console.log("New GameManager instance initiated")
    }
  
    static randomInt(min, max) {
      return Math.floor(Math.random() * (max - min + 1)) + min;
    }
  
    static removeBrackets(string){
      return string.replace(/[\])}[{(]/g, '')
    }
  
    //
    // ─── EXTERNAL DATA INTERFACE ───────────────────────────────────────────────────────────────────────────
    //
    sensorData(obj){
      this._axisX = obj["x"]
      this._axisY = obj["y"]
      this._axisZ = obj["z"]
    }
  
    gameData(...selectedGameDataArray){
      if(selectedGameDataArray.length == 0){return {x: this._axisX, y: this._axisY, z: this._axisZ}}
      let outputObject = {}
      for(const elementKey of selectedGameDataArray){
        Object.assign(outputObject, {elementKey: this[elementKey]})
      }
      return outputObject
    }
  
  
  }
  
  export {GameManager}