Separate message recieve and send from the main loop, make a print function with colors, fix some bugs.