boolean won(Piece piece) {
		for (int i = 0; i < 3; i++)
			if (getNumEachPiece(board[i], X)[0] == 3)
				return true;
		for (int j = 0; j < 3; j++)
			if (getNumEachPiece(getColumn(j), X)[0] == 3)
				return true;
		if (getNumEachPiece(getBottomUpDiag(), X)[0] == 3
				|| getNumEachPiece(getTopDownDiag(), X)[0] == 3)
			return true;
		return false;
	}