use SpriteList instead of array, remove unused variable