Movement, attack, and defense logic.