Alert dialog

Request: Don's use flag variable for lock. Use DoorLock object instead.