Simple old school chat system in java