Fixed output of method rotateNode on Node class