clientside packet handler changes, implemented ChatClient class