added enemy logic.