Further work on Sprite Generator algorithm