3D Snake in OpenGL