Switch the z-index of tiles based on the character position.