added tictacpacket class to parse the socket. Added utility function and gave a restructing