made a chip interface and added an InPin(int) method to chips