public int compareTo(Animatable other) {
		if (other instanceof GameOfLife) {
			GameOfLife o = (GameOfLife) other;
			if (x > o.x)
				return 1;
			else if (x < o.x)
				return -1;
			else if (y > o.y)
				return 1;
			else if (y < o.y)
				return -1;
			else if (boxSize > o.boxSize)
				return 1;
			else if (boxSize < o.boxSize)
				return -1;
			else
				return (randIndex > o.randIndex) ? 1 : (randIndex < o.randIndex) ? -1 : 0;
		} else {
			return getClass().getName().compareTo(other.getClass().getName());
		}
	}