Sample Code from the Android game Rubik Shifter