It is too complicated for me to explain, but I found a video that exlpains the whole thing: