Working simple wave system.
When the player reaches the end of a wave, the next one is spawned.