imported hex-distance and snake-cube