Added necessary classes for sprites and references.