Finally have the green dot following the red line. Just need to fix some bugs while the dot is still in the process of moving.