Basic bot in Java