rightClickSquare(square){
		// Squares cannot be right clicked after the game has ended so return
		if (this.gameOver){
			return;
		}

		// Check if the square is an unknown square or flag then flag or unflag it
		if (inArray(square.classList, "unknownsquare")){
			square.classList.add("flagsquare");
			square.classList.remove("unknownsquare");
			this.flagsPlaced++;
			this.vuePage.flagsPlaced = this.flagsPlaced;
		}else if(inArray(square.classList, "flagsquare")){
			square.classList.remove("flagsquare");
			square.classList.add("unknownsquare");
			this.flagsPlaced--;
			this.vuePage.flagsPlaced = this.flagsPlaced;
		}
	}
/*
     * Name: rightClickSquare
     * Description: Simulates a user right clicking a square
     * Return: None
    */
rightClickSquare
Description: Simulates a user right clicking a square
Return: None
rightClickSquare Description : Simulates a user right clicking a square Return : None
rightClickSquare(square){
		if (this.gameOver){
			return;
		}
		if (inArray(square.classList, "unknownsquare")){
			square.classList.add("flagsquare");
			square.classList.remove("unknownsquare");
			this.flagsPlaced++;
			this.vuePage.flagsPlaced = this.flagsPlaced;
		}else if(inArray(square.classList, "flagsquare")){
			square.classList.remove("flagsquare");
			square.classList.add("unknownsquare");
			this.flagsPlaced--;
			this.vuePage.flagsPlaced = this.flagsPlaced;
		}
	}
rightClickSquare ( square ) { if ( this . gameOver ) { return ; } if ( inArray ( square . classList , "unknownsquare" ) ) { square . classList . add ( "flagsquare" ) ; square . classList . remove ( "unknownsquare" ) ; this . flagsPlaced ++ ; this . vuePage . flagsPlaced = this . flagsPlaced ; } else if ( inArray ( square . classList , "flagsquare" ) ) { square . classList . remove ( "flagsquare" ) ; square . classList . add ( "unknownsquare" ) ; this . flagsPlaced -- ; this . vuePage . flagsPlaced = this . flagsPlaced ; } }
Name: rightClickSquare
 Description: Simulates a user right clicking a square
 Return: None
Name : rightClickSquare Description : Simulates a user right clicking a square Return : None
// Squares cannot be right clicked after the game has ended so return // Check if the square is an unknown square or flag then flag or unflag it