implemented base for FlagDoor