check if arrow is on path