In the CreateEnemies function you can add conditions for curRound, ifcurRound=5 you can spawn the boss and different enemies. Not sure you what meant about stopping those from previous waves as it looks like you need to destroy all enemies to go to next round.