Jury-rigged the tile map flip.