added enemy spawn function