Update fightNew.js

edited inputFunction to use "this" keyword instead of taking parameters.