sprite drawing implemented, fixed bit shifting

Sprite drawing is now implemented and working correctly.  Corrected a
few places where I was shifting bits too many places.