AI programming using Java