N-dimensional sequential move puzzle