Rewrote the hostile behaviour of map enemies.

Fixes #307