additional images that show what is behind used to update the blocks and that despite being unpowered the pistons still remain extended also the command for the bottom command block is /fill ~ ~1 ~ ~ ~3 ~ purpur_block this is so that the structure looks tidy (as i am trying to design a new door for a map i am making).
IT IS BROKEN this is NOT resolved