Add a flag to prevent multiple flips at same time or else it will override the currentFliped variable and one of the elements will never flip again. Meybe use the After flip event.
Few licence and version fixes.