adds enemy attacking feature