fixed enemy state machine