added killEnemy() function