added function to determine road part for moving