Added modulus operator to planet-colony pairing.