move the for loop and H.drawStage() into draw() method