Fix bug #9874 where MRWs showed in purple

As it turns out the 270cw rotation was wrong. Made the code more explicit as to what it is doing with the three flip bits.