added hitreg for sword, and a tester file