added debugging for buildsprite