enhanced the chat app with JSON send of position