change if statements to switch statements in auton init