U = up L = left R = right D = down r = red B = blue ' = opposite direction you could just overlap the pieces (inspired by a rubiks cube)
c2a, and enro rubik (inventor of the rubiks cube) for the inspiration