algorithm works usually for 3 agents