Changing to reference combatBehaviours
Putting duplicate code into a function