reset() {
		this.running = false;
		this.vuePage.running = false;
		if (this.vuePage.score > 0) {
			accessHighscores.updateHighscores(this.vuePage.score, prompt("Enter a name:"), "snake");
		}
		this.tail = [];
		this.x = Math.floor(this.width / 2);
		this.y = Math.floor(this.height / 2);
		this.food = 10;
		this.direction = 0;
		this.vuePage.score = 0
		this.placeFood();
	}
/*
     * Name: reset
     * Description: Resets the game
     * Return: None
    */
reset
Description: Resets the game
Return: None
reset Description : Resets the game Return : None
reset() {
		this.running = false;
		this.vuePage.running = false;
		if (this.vuePage.score > 0) {
			accessHighscores.updateHighscores(this.vuePage.score, prompt("Enter a name:"), "snake");
		}
		this.tail = [];
		this.x = Math.floor(this.width / 2);
		this.y = Math.floor(this.height / 2);
		this.food = 10;
		this.direction = 0;
		this.vuePage.score = 0
		this.placeFood();
	}
reset ( ) { this . running = false ; this . vuePage . running = false ; if ( this . vuePage . score > 0 ) { accessHighscores . updateHighscores ( this . vuePage . score , prompt ( "Enter a name:" ) , "snake" ) ; } this . tail = [ ] ; this . x = Math . floor ( this . width / 2 ) ; this . y = Math . floor ( this . height / 2 ) ; this . food = 10 ; this . direction = 0 ; this . vuePage . score = 0 this . placeFood ( ) ; }
Name: reset
 Description: Resets the game
 Return: None
Name : reset Description : Resets the game Return : None