refactored drawing to use sprite position