placeFood() {
		// If snake is maximum size then don't place any food
		if (this.tail.length + 1 == this.width * this.height){ return; }
		do {
			this.foodx = Math.floor(Math.random() * this.width);
			this.foody = Math.floor(Math.random() * this.height);
		} while ((this.x == this.foodx && this.y == this.foody) || this.isCoordInTail(this.x, this.y));
		// Keeps picking random locations which are not occupied by the snake
		//console.log("Placed food at ", this.foodx, ", ", this.foody);
	}
/*
     * Name: placeFood
     * Description: Places a piece of food in the game
     * Return: None
    */
placeFood
Description: Places a piece of food in the game
Return: None
placeFood Description : Places a piece of food in the game Return : None
placeFood() {
		if (this.tail.length + 1 == this.width * this.height){ return; }
		do {
			this.foodx = Math.floor(Math.random() * this.width);
			this.foody = Math.floor(Math.random() * this.height);
		} while ((this.x == this.foodx && this.y == this.foody) || this.isCoordInTail(this.x, this.y));
	}
placeFood ( ) { if ( this . tail . length + 1 == this . width * this . height ) { return ; } do { this . foodx = Math . floor ( Math . random ( ) * this . width ) ; this . foody = Math . floor ( Math . random ( ) * this . height ) ; } while ( ( this . x == this . foodx && this . y == this . foody ) || this . isCoordInTail ( this . x , this . y ) ) ; }
Name: placeFood
 Description: Places a piece of food in the game
 Return: None
Name : placeFood Description : Places a piece of food in the game Return : None
// If snake is maximum size then don't place any food // Keeps picking random locations which are not occupied by the snake //console.log("Placed food at ", this.foodx, ", ", this.foody);