Skeleton code for spawning waves