Initial Import: Clean Function

TODO: save sprite objects created/dispose
cleanFunction: working
Merge branch 'cleanFunction'