Better AI calculations

.js
-Rather than having to run the same checks separately if the enemy object is moving left or right, we now use Enemy.dir and Enemy.moveSide to put the enemy's direction into our decision calculation.

.html
-Enemy debugging

Now I'm trying to figure out how to get the AI to stop running off the edge of the world… :(