The easiest way is to open your save file with PKHeX, and go into the trainer editor. You will see your character position from which you can change coordinates.
This guide to get CFW is by far the best guide you can follow, just read all of the instructions carefully and slowly and you should have no problems
https://3ds.guide/