cahnged printChromosome to deal with some nodes haveing less inputs