updated code for arm and claw positioning