Mole Unearther - Game dev project

Hi, I have been moving through the mole unearther game dev project but after hitting the section 9 - 14 related to keyboard input I noticed the browser view went blank. Even if I can’t print or check my work.

After reviewing the answer provided by codeacademy tea, my code seems correct yet the problem persists. Can Anyone take a look at my code and tell me what am I missing plz? I would really like to be able to complete this one. Thank you

// Stores the current “key” location of the mole

let currentBurrowKey;

let timeLeft = 30;

let score = 0;

let isPaused = false;

const gameState = {};

class GameScene extends Phaser.Scene {

constructor() {

super({ key: 'GameScene' });

// list of all burrow locations

// each location contains a corresponding key on the keyboard,

// and the x and y pixel coordinates on the screen

this.burrowLocations = [{

  key: 'j',

  x: 100,

  y: 310,

},

{

  key: 'k',

  x: 240,

  y: 390,

},

{

  key: 'l',

  x: 380,

  y: 310,

}];

}

// import all of the visual assets we will use throughout the game

preload() {

// calls the image function to load in the background, and assigns the image to the field key

// the background is loaded from the given url

this.load.image('background', 'https://content.codecademy.com/courses/learn-phaser/mole-unearther/background.png');

// calls the spritesheet function to load in the mole as a spritesheet to make animations, and assigns it to the mole key

// the mole is loaded from the given url with the given width and height

this.load.spritesheet('mole',

  'https://content.codecademy.com/courses/learn-phaser/mole-unearther/mole-sprite.png',

  { frameWidth: 198, frameHeight: 250 });

}

// set up scene visuals, animations, and game logic when events occur

create() {

const updateTimer = () => {

  timeLeft -= 1;

};

// executed after every second passes

const onSecondElapsed = () => {

  if (isPaused === false) {

    updateTimer();

    // display the new time to the user

    this.updateTimerText();

  }

};

// display background

this.initializeBackground();

// set up score text

this.initializeScoreText();

// go through each burrow and set up key listeners on the corresponding key

this.initializeBurrowKeys();

// set up animation callbacks

this.initializeAnimations();

// set up mole and place in first location

this.initializeMole();

// set up text for timer and callback for countdown

this.initializeTimer(onSecondElapsed);

}

// periodically checks and handles user input by updating game logic

update() {

if (timeLeft <= 0) {

  // Provided for user

  this.scene.stop('GameScene');

  this.scene.start('EndScene');

}

// user successfully hit the mole, so reward the user with 5pts

const applyHitReward = () => {

  // display how many points the user will gain

  this.displayRewardText();

  // display the new score to the user

  this.updateScoreText();

};

// user missed the mole, so penalize the user by taking away 5pts

const applyMissPenalty = () => {

  };

const onBurrowHit = (key) => {

  if (key === currentBurrowKey) {

    applyHitReward();

    this.relocateMole();

  } else {

    applyMissPenalty();

    }

  };

Hello!
If that’s everything (it’s a little hard to tell with the way it’s formatted), then I think you’re missing a } off the very end - for the update() function.