Code:

//Asteroid 1 Redrawing
while(a1_line1x2<=490){
SetDrawColor(win, 1.0, 1.0, 1.0);
Line(win, a1_line1x1, a1_line1y1, a1_line1x2, a1_line1y2);
Line(win, a1_line2x1, a1_line2y1, a1_line2x2, a1_line2y2);
Line(win, a1_line3x1, a1_line3y1, a1_line3x2, a1_line3y2);
Line(win, a1_line4x1, a1_line4y1, a1_line4x2, a1_line4y2);
a1_line1x1+=update2;
a1_line1x2+=update2;
a1_line2x1+=update2;
a1_line2x2+=update2;
a1_line3x1+=update2;
a1_line3x2+=update2;
a1_line4x1+=update2;
a1_line4x2+=update2;
SetDrawColor(win, 0.0, 0.0, 0.0);
Line(win, a1_line1x1, a1_line1y1, a1_line1x2, a1_line1y2);
Line(win, a1_line2x1, a1_line2y1, a1_line2x2, a1_line2y2);
Line(win, a1_line3x1, a1_line3y1, a1_line3x2, a1_line3y2);
Line(win, a1_line4x1, a1_line4y1, a1_line4x2, a1_line4y2);
}
while(a1_line3x2>=10) {
SetDrawColor(win, 1.0, 1.0, 1.0);
Line(win, a1_line1x1, a1_line1y1, a1_line1x2, a1_line1y2);
Line(win, a1_line2x1, a1_line2y1, a1_line2x2, a1_line2y2);
Line(win, a1_line3x1, a1_line3y1, a1_line3x2, a1_line3y2);
Line(win, a1_line4x1, a1_line4y1, a1_line4x2, a1_line4y2);
a1_line1x1-=update2;
a1_line1x2-=update2;
a1_line2x1-=update2;
a1_line2x2-=update2;
a1_line3x1-=update2;
a1_line3x2-=update2;
a1_line4x1-=update2;
a1_line4x2-=update2;
SetDrawColor(win, 0.0, 0.0, 0.0);
Line(win, a1_line1x1, a1_line1y1, a1_line1x2, a1_line1y2);
Line(win, a1_line2x1, a1_line2y1, a1_line2x2, a1_line2y2);
Line(win, a1_line3x1, a1_line3y1, a1_line3x2, a1_line3y2);
Line(win, a1_line4x1, a1_line4y1, a1_line4x2, a1_line4y2); }

this is my code for one of my boxes, right now it keeps jumping back and forth with "while" loops but if i put an if there the box will go to the edge...redraw itself backwards once ... then redrawn itself forwards. the whole box redrawing is done in a body of a bigger event loop.