added type to sprite class