Improved enemy AI

Enemies will now patrol back and forth, turning when they hit a wall.
In addition, enemies now only attack players that they can see.