start new version of pencil picking up algorithm