comments added, renamed selectTarget to userSelectsTarget, separated call for segmentHand from userSelectsTarget