enemy attacking and improvements to AI