FigureEight turn

fixed main code for the Figure Eight turning