refactor enemy spawn to be more efficient