updated enemy AI, added player attack