added motionB for triangles[0-8]