Update TaskFigure.class

Changed taskfigure to statefigure