Calm down and explain exactly what you want to happen. What you have outlined seems ridiculously complicated.
You have two doors and one button and you want what to happen? 1st press opens 1 door and 2nd opens 2nd door? Does the 1st door close? Describe functionally what you want the player to experience. Not how you want to do it, but what the player experiences.