Do you remember how the first gate worked? If you put a head on it, then the shelf would fall and the door would open.