implemented xToMove and changed Node constructor interface to reject jagged arrays