Client made object oriented. Chat is once again fully functional.