refactor and add a way to regenerate enemies
add to enable hackery
more tweaks suggested by James