Simple chat bot coded in Java