check you homeing positions in your firmware
ie
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define X_MAX_POS 200
#define Y_MAX_POS 200
#define Z_MAX_POS 200
this needs to match your hardware
Start with the position of your endstops,
eg it look like your X axis has a endstop on the right hand side. this is a max endstop, when you home X to max, how far away is it from X0, enter this into
#define X_MAX_POS
do the same for Y, if the Y endstop is at the back this is a min endstop, if the Y endstop is at the front, this is a max endstop