I wanted to make something that rotates and gets bigger as time goes. So I played with rotate as move in the function and it was not rotating over for loop. So I made display function and rotated at the draw function. As a result, the ellipse moves like a worm/snake following the mouseX and mouseY. Also by mouse-pressed function the ellipse is getting smaller with negative value.