New angle-based AI + bugfixes.