Sample code form the Android game Rubik Shifter