added drawHit function for drawing hit components