implemented calculate damage
fixed params passed to damage