Hi @CHAIkah,
I have posted an explanation of periodic boundary mappings here: Periodic BC Problem in 3D - #6 by conpierce8
Perhaps that will clear up some of your confusion.
Note that for periodic boundary mapping to be successful, you need your mesh to be periodic, i.e. the nodes on the left/right and top/bottom boundaries should be in the same locations.