changed 360.001 to 360.1 and 359.999 to 359.9 in the "correctCoord" function