wrote moveDipDraw function