if you know you've only two doors i'd go with a global variable. otherwise i'd choose some kind of group array.