implemented method for calculating damage done