Emergency Arm Behavior, Restructuring code for competition.