setSwitch(ArrayList<Direction> dir)