An FCM-based Design for Balancing of Legged Robots