Refactored sprites controller