Get the string from the start to the end without getting cut by scissors or hit by walls.
move the string so as to avoid the walls