adding chat receiving functionality, testing sending functionality