update: edited MouseFigure destructor to fix invalid free