function switchTurn() {

	if(checkForWinner(document.turn.charAt(0)) == true ){
		setMessage("Congrats " + document.turn + ", you won!")
		document.winner = true;
	}else if(document.turn.charAt(0) == "x"){
		document.turn = "o";
		setMessage("It's " + document.turn + "'s turn")
	}else{
		document.turn = "x";
		setMessage("It's " + document.turn + "'s turn")
	}
}
//Switches the turn displayed on the top of the box to either x or o
Switches the turn displayed on the top of the box to either x or o
Switches the turn displayed on the top of the box to either x or o
function switchTurn() {
	if(checkForWinner(document.turn.charAt(0)) == true ){
		setMessage("Congrats " + document.turn + ", you won!")
		document.winner = true;
	}else if(document.turn.charAt(0) == "x"){
		document.turn = "o";
		setMessage("It's " + document.turn + "'s turn")
	}else{
		document.turn = "x";
		setMessage("It's " + document.turn + "'s turn")
	}
}
function switchTurn ( ) { if ( checkForWinner ( document . turn . charAt ( 0 ) ) == true ) { setMessage ( "Congrats " + document . turn + ", you won!" ) document . winner = true ; } else if ( document . turn . charAt ( 0 ) == "x" ) { document . turn = "o" ; setMessage ( "It's " + document . turn + "'s turn" ) } else { document . turn = "x" ; setMessage ( "It's " + document . turn + "'s turn" ) } }
Switches the turn displayed on the top of the box to either x or o
Switches the turn displayed on the top of the box to either x or o