Fixed the tiling bug for non-power of 2 worlds. Unfortunately this means distortion when a world is not square.