Biped Coding Issues

By all means use a for-loop to calculate servo positions. But don't send commands to servos in that loop, or use delay calls.