Added restrictions to enemy killing

Enemies behind obstacles cannot be killed.