Refactored debugDraw to include all drawing logic