lots of wave processing logic and creation of enemies