changed controlAnimation() to controlCounter()