Scale up and down an ellipse doesn't work within a function

Please be mindful of the guidelines:

This is an achievable project.

I worked through this with some young programmers with very simple state transitions with success.
I may share an example at a later date without integrating your project.

:)