highlight/build logic rewrite; added distance measurement(WIP)