Tap a tile to turn it. Hold it (or right-click) to pin it so it can't turn.
All tiles go back to where they started and all pins come out.