simultaneously lithuania had to face territorial conflicts with its neighbor country poland