added enimies defeat function