i think i fixed it
(i added a variable to detect when you're swinging so it's easier to code collisions