Rubik's 2x2 Cube in Rails