@Override
	public boolean equals(Object other) {
		if (!(other instanceof CodeObject)){
			return false;
		}
		
		CodeObject otherCode = (CodeObject) other;
		
		if (otherCode.length() != this.length()) {
			return false;
		}
		
		for (int i = 0; i < this.length(); i++) {
			if (otherCode.getColour(i) != this.getColour(i)) {
				return false;
			}
		}
		
		return true;
	}