A part of AI added to addChip() method.