Two way messenger written in Java