refactor addChat to receiveChat and change this.receiveChat to just receiveChat