Idk If I fixed the bugs you were looking fore, but thats all the immediate issues I found out of the way. You should try to make it so that when text reaches the bottom edge of the screen it automatically transfers it into a new chatbox, so text doesn't go off screen! I like how you automatically put it into newlines.