add gitignore
refacture damage functions