Set trapCounter to 0 initially