Added enemy generation code.