I need the most compact way to move an array row to the left ... like this ...
[ ][ ][N][N]
[ ][N][N][ ]
You could push a new element X element on the front of the array. If that's not appropriate, you could move all the XY values to a temporary array, and then cycle through the temporary array to reassign each X,Y to the original arrays X+1,Y.
It also needs to switch from one side to another like this ...
[N][N][ ][ ]
[N][ ][ ][N]
I'm not sure what is being switched in this example.