Move the mallet around with your mouse and click on the mole when it appears to whack it away.
Thank you to @otterlover16 for the original project