Here are the instructions from the original game:
This is a Mora Jai box from the game Blue Prince by Tonda Ros, you should check it out. Black: shift right Yellow: rise Green: swap sides White: toggles itself and other emptys/whites Red: turns black to red and white to black Orange: becomes its neighbors Purple: fall Pink: rotates Gray: none Blue: mimics the center