added AIController. fixed collision detection bug