Doing: collision check; rotate the arm(rectangular)