check if the agents array is actually long enough before checking the element. in addAgent, if the array isn't long enough, don't try to add a new agent!
check if the agents array is actually long enough before checking the element.
in addAgent, if the array isn't long enough, don't try to add a new agent!

ajschult/etomica,etomica/etomica,ajschult/etomica,etomica/etomica,etomica/etomica,ajschult/etomica