What is the meaning of the word "foiled"?

Definitions: