Repaired the sprite drawing system so that it works (for now). Ran the spritetest and it worked fine.