function checkForWinner(move) {
	var result = false;
	//Vertical Winning States
	if (checkRow(1, 2, 3, move) ||
		checkRow(4, 5, 6, move) ||
		checkRow(7, 8, 9, move) ||
	
	//Diagonal Winning States
		checkRow(1, 5, 9, move) ||
		checkRow(3, 5, 7, move) ||

	//Horizontal Winning States
		checkRow(1, 4, 7, move) ||
		checkRow(2, 5, 8, move) ||	
		checkRow(3, 6, 9, move)) {
		result = true;
	}
	return result;
}
//Checks each possible way for a player to win whether they are x or o
Checks each possible way for a player to win whether they are x or o
Checks each possible way for a player to win whether they are x or o
function checkForWinner(move) {
	var result = false;
	if (checkRow(1, 2, 3, move) ||
		checkRow(4, 5, 6, move) ||
		checkRow(7, 8, 9, move) ||
		checkRow(1, 5, 9, move) ||
		checkRow(3, 5, 7, move) ||
		checkRow(1, 4, 7, move) ||
		checkRow(2, 5, 8, move) ||	
		checkRow(3, 6, 9, move)) {
		result = true;
	}
	return result;
}
function checkForWinner ( move ) { var result = false ; if ( checkRow ( 1 , 2 , 3 , move ) || checkRow ( 4 , 5 , 6 , move ) || checkRow ( 7 , 8 , 9 , move ) || checkRow ( 1 , 5 , 9 , move ) || checkRow ( 3 , 5 , 7 , move ) || checkRow ( 1 , 4 , 7 , move ) || checkRow ( 2 , 5 , 8 , move ) || checkRow ( 3 , 6 , 9 , move ) ) { result = true ; } return result ; }
Checks each possible way for a player to win whether they are x or o
Checks each possible way for a player to win whether they are x or o
//Vertical Winning States //Diagonal Winning States //Horizontal Winning States