How were cocoa beans used by the Aztecs?

the Aztecs used to eat cocoa beans before war to gain strength. they also used it instead of money.