Refactoring damage modelling and score counting