Added collision avoiding to AI