Netlogo. How to sum the variable(turtle own) of one turtle to another turtle
<p>In my program there is a turtle which has the variable biomass ( turtle own biomass). In the word is possible to have a lot of turtles with different biomass.  What i  need to: 
When a turtle found another in the same patch they must transfer their biomass(sum the biomass of all turtles ) to the turtle whose biomass is higher and then turn their(all turtle in the patch except the one whose biomass is higher) biomass to zero. ( there is a command that kills the turtle with zero biomass already)
I thank you for the attention! </p>

<p>Hey! I tried to do my own code as you said me to do. 
But the code only works in the begin of the program. As the program will running some case bug the program. I dont know where is this bug comming from.... The variable starts to sum it self... This is the part of the code:
biomass is a variable from the turtle   >  turtle-own [biomass]</p>

<pre><code>while [any? Other turtles-here]
[
    Let maximum max[biomass] of turtles-here
    Let auxi  sum[biomass]of turtles-here
    Let higher turtles-here with-max[biomass]
    Let otherhigher count other turtles-here with-max [ biomass]
    If (otherhigher&gt;0)
    [set higher turtles-here with-max[headling] ; (I PUT THIS IN CASE THE TURTLE HAS THE SAME BIOMASS]
     Ask higher [ set biomas (aux) ]
     Let lower turtles-here with [biomass&lt; maximum]  ; (LOWER CAN BE MORE THAN ONE)
     Ask lower [set biomass (0)]
     Ask turtles-here with [biomass&lt;=0] [die]
    ]
    end
</code></pre>