continuing work on the sprite handler