Each episode is unlocked after gaining a certain number of stars in an episode. Once the required number of stars has been reached, the subsequent episode will be unlocked.