A Brexit deal may yet emerge from the current confusion