a simple grid flipping effect in iOS