update enemy with encapsulation