Solve the rotation issue.
The color is now fixed, only the tiles are rotated randomly.