Fixed collision with entities, improved enemy "AI" (patrolling with goals),