Added ledge detection for enemies

Enemies no longer fall of ledges.