removed some unused AI code