function startGame() {
	countO = 1;
	countX = 1;
	count = 1;
	countBox = 1;
	testcount = 1;
	removeCount = 4;

	for(var i = 1;i <= 9;i++){
		clearBox(i);
	}
	if(Math.random() <= 0.5){
		document.turn = "x";
		let ifxo = 1;
	}else{
		let ifxx = 2;
		document.turn = "o";
	}
	document.winner = null;
	setMessage(document.turn + " starts first");
}
//This function starts the game, resets the game, or ends the game
This function starts the game, resets the game, or ends the game
This function starts the game resets the game or ends the game
function startGame() {
	countO = 1;
	countX = 1;
	count = 1;
	countBox = 1;
	testcount = 1;
	removeCount = 4;
	for(var i = 1;i <= 9;i++){
		clearBox(i);
	}
	if(Math.random() <= 0.5){
		document.turn = "x";
		let ifxo = 1;
	}else{
		let ifxx = 2;
		document.turn = "o";
	}
	document.winner = null;
	setMessage(document.turn + " starts first");
}
function startGame ( ) { countO = 1 ; countX = 1 ; count = 1 ; countBox = 1 ; testcount = 1 ; removeCount = 4 ; for ( var i = 1 ; i <= 9 ; i ++ ) { clearBox ( i ) ; } if ( Math . random ( ) <= 0.5 ) { document . turn = "x" ; let ifxo = 1 ; } else { let ifxx = 2 ; document . turn = "o" ; } document . winner = null ; setMessage ( document . turn + " starts first" ) ; }
This function starts the game, resets the game, or ends the game
This function starts the game resets the game or ends the game