Refactored ChatArea code into its own go file