1. fix bug if user disconnect while respawning
 2. add chat function