Assuming you've got a class representing a scene you wish to switch to (ex. YourNewScene), add something like this to your code:
- (void) switchScene
{
[[CCDirector sharedDirector] replaceScene:[CCTransitionFade transitionWithDuration:1.0 scene:[YourNewScene scene]]];
}
- (BOOL)ccPhysicsCollisionBegin:(CCPhysicsCollisionPair *)pair monsterCollision:(CCNode *)monster barrierCollision:(CCNode *)barrier
{
[monster removeFromParent];
gone--;
[gonelabel setString:[NSString stringWithFormat:@"Left: %d",gone]];
if(gone == 0)
[self switchScene];
return YES;
}
This question may provide more details.