function Game() { this.number = 0; const t = setInterval(() => { this.number = Math.floor((Math.random() * 10) + 1); }, 1000); this.checkNumber