I was thinking. Althoug this creates a lot of new lines. But it might work. Maybe it needed to make a new function that takes care of the movement, and then returns back to main when the mvement is done.
Been a few days since i last had tme to do this. So basicly i made it so that if a mouse button is cliced it does the thing it usually does, but i added that if mouse isnt cliced then it just updates screen. But this created a problem: i cannot see the mouse and it draws circle only in one corner nowhere else. So probably i made somekind of repetiton loop thet is causing this.