Add Java version of 3D snake