Various AI fixes and implementation of 'scent clouds'