Change colors when a shape connected to others