If you have run out of moves before reaching the goal of the level, you can extend your play by using Gems or by watching a video.