Refactoring mage. Fling control for balls added. Grid added.