What is the purpose this statement in move_unit function?
Code:
while(mouse_left == 1) {wait(1);}


And how should control the moving of the guards?