Thanks for commenting! The "bug" you most likely ran into was an intentional feature - keep an eye out for the colored words at the top of the screen. As you move, the letters gray out from right to left, signifying the amount of moves you have left; the level will automatically restart when you run out, as that is in fact a failure condition =)