Im working on a tic-tac-toe game, and I'm trying to compare 2 arrays.
One array has the winning answer combinations:

```
var answers = ["1,2,3", "1,4,7", "2,5,8", "3,6,9", "4,5,6", "7,8,9", "1,5,9", "3,5,7"];

```

Depending on the div clicked, an array is is filled with that divs correlating value. So, if 'X' clicks the 1st, 3rd & 5th divs, the array for player X = `1,3,5`. 

If player X then clicks box 2, he wins, because he'll have 3 in a row, because when `1,3,5,2` is compared to the `answers` array, `answers[0]` contains all of those values too.

I was trying to compare strings first, but the order is an issue, so went with trying to compare integers. Still not sure if that's right or not.