Dictionary.com
Thesaurus.com
had been flummoxing
  • past perfect progressive of flummox.