updated non-square and square tile with reordering of loops. 3.0 attained