Nice idea! The controls seem a bit weird. Why not just click on a brick to rotate it? I would also remove the move limit. You could still keep track of how many moves were needed.