Switch x & y iteration order.

X looping inner is more intuitive to me. This will be preferred when nesting loops.