creating sprite class