Reduced the code of the behaviours for the equipletAgent.

Changed the code of the equipletAgent so it contains less try/catch blocks.