now it should work, it worked earlier on every computer but mine. Bug
with synchronization fixed by using CyclicBarrier instead of Counter