@martin7404 and @felek , Update i couldn't use the end stop, it just didn't stop at all, i had Bltouch installed for Z and it did trigger but it didn't stop and crashed, did some edits and now Z just crashes during homing.... . Luckily i was able to switch it offf before it got any worse. I did try sensorless homing and i was able to make it stop but that led to another issue.
My X and Y axis was weird, like instead of it going left back, no matter what settings i changed, it either kept going (right back) or (left front) or left front) and when i do get the (left back) after awhile it just automatically goes to right back.
I have since deleted whatever i uploaded as it kept confusing me more and more. It just didn't make any sense to me anymore.
To make it clear i used @felek files just edited printer name and wifi settings but the endstop still didn't work and then i changed here and there and here till i lost myself.
Bit lost for now, will keep reading the manual and codes you guys shared and see what my issue it. I'm not sure if it's the stepper wiring or whatever it is. But does firmware version matters too?