changes made to sprite class
Sprite class updated with indexes