I have it working now with this code:
public boolean isWon(int token) {
for (int i = 0; i < 3; i++)
if ((gameBoard[i][0] == token) && (gameBoard[i][1] == token)
&& (gameBoard[i][2] == token)) {
return true;
}
for (int j = 0; j < 3; j++)
if ((gameBoard[0][j] == token) && (gameBoard[1][j] == token)
&& (gameBoard[2][j] == token)) {
return true;
}
if ((gameBoard[0][0] == token) && (gameBoard[1][1] == token)
&& (gameBoard[2][2] == token)) {
return true;
}
if ((gameBoard[0][2] == token) && (gameBoard[1][1] == token)
&& (gameBoard[2][0] == token)) {
return true;
}
return false;
}
Thanks for all the help!!
/solved