Chat implemented but there are some litles bugs