square grid transformations
123