Each level contains of multiple checkpoints. In order to complete the level you will need to pass all the checkpoints. You can see your current checkpoint on the top left banner. If you run out of birds before completing all checkpoints, you will be presented with the Out of Moves pop-up.

Out_of_Moves_-_not_in_last_checkpoint.png