fix distribution loop between players and add unit
tests for that