change pattern to r-pentomino