Piece flip algorithm is working in east and west directions.