anchor.diff:                                       {stop,term(),state()}.
   handle_cast({reportFromArena,Arena,Value},State) ->
       Dict = State#state.reports,
  -    error = dict:find(Arena,Dict), % debug
  +        error = dict:find(Arena,Dict), % debug - tu wyskakuje error!
       NewDict = dict:store(Arena,Value,Dict),
       case dict:size(NewDict) of
           4 ->
  
positive.code:     {Best,Reproductions} = dict:fetch(reproduction,Dict),
      Add1 = Reproductions ++ Immigrations,
      Del1 = Deaths ++ Emigrations,
      Db4b = State#state.db4b -- [X || X <- State#state.db4b, lists:keymember(X,1,Add1)],
      Add2 = lists:filter(fun({Pid,_Agent}) ->
                                  not lists:member(Pid,State#state.db4b)
                          end,Add1),
      io:format(" Fixed: ~p~n",[length(Add1) - length(Add2)]),
      Overlap = [X || {X,_} <- Add2, lists:member(X,Del1)],
      Add3 = [{Pid,Agent} || {Pid,Agent} <- Add2, not lists:member(Pid,Overlap)], %% dobrze byloby moc to wywalic
      Del3 = Del1 -- Overlap, %% dobrze byloby moc to wywalic
      Population1 = lists:foldl(fun({Key,Val},Tree) ->
                                        gb_trees:insert(Key,Val,Tree) % insert czy enter?
                                end, State#state.agents, Add3),
  
negative.code:                                                       {gb_trees:delete(Pid,Tree),TMPdb4b}
                                                end
                                        end, {Population1,Db4b}, Del3),
      {SumVar,MinVar,VarVar} = misc_util:diversity([Val || {_Key,Val} <- gb_trees:to_list(NewAgents)]),
      logger:logLocalStats(parallel,fitness,Best),
      logger:logLocalStats(parallel,population,gb_trees:size(NewAgents)),
  