where is the logic for opening doors (the full thing, both seeing if you CAN open it, and actualy opening it)