@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Planet other = (Planet) obj;
		if (colonized != other.colonized)
			return false;
		if (containsRobot != other.containsRobot)
			return false;
		if (elements == null) {
			if (other.elements != null)
				return false;
		} else if (!elements.equals(other.elements))
			return false;
		if (holes == null) {
			if (other.holes != null)
				return false;
		} else if (!holes.equals(other.holes))
			return false;
		if (homePlanet != other.homePlanet)
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (rocks == null) {
			if (other.rocks != null)
				return false;
		} else if (!rocks.equals(other.rocks))
			return false;
		if (scanned != other.scanned)
			return false;
		return true;
	}