then , with what looked like a deliberate nod of acknowledgment in the direction of the robot , it turned its immense square head and gracefully began its long ascent to the surface with the remnants of the squids tentacles trailing from its huge mouth .