use requestAnimationFrame
start of AI code
enemy shoots at player, while player lives
refactor dirTowards
enemy moves randomly
remove logging
terrain blocks movement