AI - added option to wrap coordinates (for path finding)