Changes to wave spawn algorithm