I Need Help!!!

Hi, I'm trying to make a game sort-of like Zombie Drop or Doodle Destroy but i can't figure out how to make it so that the player has too get rid of all of the "bad blocks" before he can advance to the next level. Thanks!