refactoring of the files to make the nerve gun a class by itself