Refactored code with sprite orgs