I'm making a simple tic-tac-toe game but for some reason when trying to create the rules for the game, I can't seem to get anything to work. I have a multidimensional array that has the rules in it but I can't even get one cell to react accordingly. What's wrong with the bottom if statement in my JavaScript pannel? http://jsfiddle.net/Cp4Lu/1/ (This is the if statement I'm referring to)
if (c9.text === 'X') {
alert("You win!");
}