added try except block to enemy