reworking basic ai loop
reworking basic ai loop
reworking basic ai loop