Helps to get the X and Y elements round the right way. 2D arrays
are rows then columns.