Semi-Implemented of encoding/decoding custom data packet
Fished the decoding/encoding of data packet