Fixing bug in tile rotation and flip together.

Please test too.