Create leafs and detect move