Eliza clone in java