private HashMap<String, LinkedList<Block>> setSwitchList(LinkedList<Block> blockSection) {

    Iterator<Block> blockIterator = this.section.iterator();
    HashMap<String, LinkedList<Block>> switchMap = new HashMap<String, LinkedList<Block>>();

    while (blockIterator.hasNext()) {
      Block currBlock = blockIterator.next();
      if (currBlock.getMasterSwitch()) {
        LinkedList<Block> blocks = (LinkedList<Block>) currBlock.getSwitchList();
        blocks.addFirst(currBlock);
        switchMap.put(Integer.toString(currBlock.getSwitchNum()), blocks);
      }
    }

    return switchMap;
  }