first pass at 'tile flipping'