converting combat.js
adding services folder
more refactoring