UPDATE:
after trying some of your suggestion, i discovered that the button is not in fault here, but instead is the code itself.
After several try testing, i realized that the serial freezes when i pressed the button and the PIR sensor detected some movement. I saw that the boolean turns true for a second, but then the whole thing crashes instantly afterwards.
At this point, i could not find the reason behind this freeze as i tried to use every resistor in every possible place and it do not fix this problem.
Please help.