Moved code into new method.

Before, the motor actions of an agent was performed within
updateMNetwork(), now this is performed in applyMotorOutput().