OK so you have a question? I can not answer without asking a few myself to you.
Would help if we knew something about your 3D Printer.
1. Where is the Home 0,0,0 located on the bed.
2. What style 3D Printer is this.



This could all be shown in a single video posted to a share like Google Drive with a link to the video posted here.
If you are having problems with your firmware you could post it to the same Google Drive

As an example
I have a two Hictop Prusa i3 the home 0,0,0 location is front left corner of the hot-bed
My X-Axis end-stop switch is on the left hand side of the X-Axis. My Y-Axis end-stop switch in on the rear frame center.
This would give us a point a reference as to what you have.