You'll always have a given number of Moves you can make to complete all Goals in a level. If you run out of Moves before all Goals are completed, you'll lose the level and have to start over!