Cleaned the code fixed the directional bug

Some AI enemies kept going in circles, now fixed.