So you're stuck on level 23? This level is a jelly clearing level so maybe you have it confused with another?
But I know that on the points levels you need to use all your moves, so even if you reach the target, the game won't end unless you use all of your moves.