This is not my game, I was just fixing a few bugs. All credit goes to @Plant2
I changed just a few blocks, trying to stop it changing to the next level before the transition finishes.