HashMap update

The HashMap containing the agents and their cells is updated #1