Why does the error comes even though the function is defined?

here is the link to my project bit.ly/antgamep5

please help me to figure out the error the function is defined buti am getting the error Uncaught ReferenceError: antsweets is not defined (sketch: line 164)

please help me as soon as possible