A Computational Model For Building Modular Animals: Design And Configuration Of The Decision Network